TST explicit convert array to float that will contains np.nan
@@ -198,7 +198,7 @@ def precision_recall_curve_padded_thresholds(*args, **kwargs):
return np.array([
precision,
recall,
- np.pad(thresholds,
+ np.pad(thresholds.astype(np.float64),
pad_width=(0, pad_threshholds),
mode='constant',
constant_values=[np.nan])
