Skip to content

Commit

Permalink
Fix: 547 wrong warning (when using regression_coverage_score) (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadhussein462 authored Dec 9, 2024
1 parent 64d416e commit 0179598
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ History
* Fix documentation build warnings
* Fix issue 528 to correct broken ENS image in the documentation
* Fix issue 548 to correct labels generated in tutorial
* Fix issue 547 to fix wrong warning

0.9.1 (2024-09-13)
------------------
Expand Down
8 changes: 3 additions & 5 deletions mapie/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
from ._machine_precision import EPSILON
from ._typing import ArrayLike, NDArray
from .utils import (calc_bins, check_alpha, check_array_inf, check_array_nan,
check_array_shape_classification,
check_array_shape_classification, check_split_strategy,
check_array_shape_regression, check_arrays_length,
check_binary_zero_one, check_lower_upper_bounds,
check_nb_intervals_sizes, check_nb_sets_sizes,
check_number_bins, check_split_strategy)
check_binary_zero_one, check_nb_intervals_sizes,
check_nb_sets_sizes, check_number_bins)


def regression_coverage_score(
Expand Down Expand Up @@ -55,7 +54,6 @@ def regression_coverage_score(
y_pred_up = cast(NDArray, column_or_1d(y_pred_up))

check_arrays_length(y_true, y_pred_low, y_pred_up)
check_lower_upper_bounds(y_true, y_pred_low, y_pred_up)
check_array_nan(y_true)
check_array_inf(y_true)
check_array_nan(y_pred_low)
Expand Down

0 comments on commit 0179598

Please sign in to comment.