Skip to content

Commit 3b638e6

Browse files
author
Vincent Blot
committed
ENH : take into account GMO comments
1 parent 098330e commit 3b638e6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

mapie/_typing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66
except (AttributeError, ModuleNotFoundError):
77
ArrayLike = Union[np.ndarray, List[List[float]]]
88

9-
NumpyInt = np.int64
10-
119
__all__ = ["ArrayLike"]

mapie/classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def predict(
673673
[
674674
np.ma.masked_greater_equal(
675675
y_pred_proba,
676-
y_pred_proba_last[:, iq].reshape(-1, 1)
676+
y_pred_proba_last[:, iq].reshape(-1, 1) - EPSILON
677677
).mask
678678
for iq, _ in enumerate(self.quantiles_)
679679
], axis=2

mapie/tests/test_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
[True, False, False],
142142
[True, False, False],
143143
[False, True, False],
144-
[True, True, False],
144+
[True, True, True],
145145
[False, True, False],
146146
[False, False, True],
147147
[False, False, True],

0 commit comments

Comments
 (0)