Skip to content

Commit

Permalink
Fix an issue introduced by the new eps penalty in sklearn 1.2
Browse files Browse the repository at this point in the history
The default value changed from 1e-15 to "auto" that is equivalent to np.finfo(y_pred.dtype).eps.
  • Loading branch information
PGijsbers committed Apr 9, 2023
1 parent 80eacc8 commit ff740e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_ea_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_logloss_numeric():
log_loss_metric = Metric("neg_log_loss")
y_true = np.asarray([1, 0, 0, 0, 1])
y_1_mistake_ohe = np.asarray([[0, 1], [0, 1], [1, 0], [1, 0], [0, 1]])
one_mistake_logloss = -6.907755278982137
one_mistake_logloss = -7.20873067782343
_test_metric(
log_loss_metric,
y_true,
Expand Down

0 comments on commit ff740e5

Please sign in to comment.