Skip to content

Commit 11a7a68

Browse files
glemaitreogrisel
authored andcommitted
TST explicit convert array to float that will contains np.nan (scikit-learn#19101)
1 parent 2f1495c commit 11a7a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/metrics/tests/test_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def precision_recall_curve_padded_thresholds(*args, **kwargs):
198198
return np.array([
199199
precision,
200200
recall,
201-
np.pad(thresholds,
201+
np.pad(thresholds.astype(np.float64),
202202
pad_width=(0, pad_threshholds),
203203
mode='constant',
204204
constant_values=[np.nan])

0 commit comments

Comments
 (0)