Skip to content

Commit 0179598

Browse files
Fix: 547 wrong warning (when using regression_coverage_score) (#555)
1 parent 64d416e commit 0179598

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ History
1111
* Fix documentation build warnings
1212
* Fix issue 528 to correct broken ENS image in the documentation
1313
* Fix issue 548 to correct labels generated in tutorial
14+
* Fix issue 547 to fix wrong warning
1415

1516
0.9.1 (2024-09-13)
1617
------------------

mapie/metrics.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
from ._machine_precision import EPSILON
99
from ._typing import ArrayLike, NDArray
1010
from .utils import (calc_bins, check_alpha, check_array_inf, check_array_nan,
11-
check_array_shape_classification,
11+
check_array_shape_classification, check_split_strategy,
1212
check_array_shape_regression, check_arrays_length,
13-
check_binary_zero_one, check_lower_upper_bounds,
14-
check_nb_intervals_sizes, check_nb_sets_sizes,
15-
check_number_bins, check_split_strategy)
13+
check_binary_zero_one, check_nb_intervals_sizes,
14+
check_nb_sets_sizes, check_number_bins)
1615

1716

1817
def regression_coverage_score(
@@ -55,7 +54,6 @@ def regression_coverage_score(
5554
y_pred_up = cast(NDArray, column_or_1d(y_pred_up))
5655

5756
check_arrays_length(y_true, y_pred_low, y_pred_up)
58-
check_lower_upper_bounds(y_true, y_pred_low, y_pred_up)
5957
check_array_nan(y_true)
6058
check_array_inf(y_true)
6159
check_array_nan(y_pred_low)

0 commit comments

Comments
 (0)