Skip to content

Commit

Permalink
Fix deprecation np.float -> float
Browse files Browse the repository at this point in the history
  • Loading branch information
OmegaLambda1998 committed Aug 31, 2023
1 parent 8ead7e3 commit 2a8f0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pippin/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def save_calibration_curve(self, df, output_name):
continue

data2 = data[combined_mask]
truth2 = truth[combined_mask].astype(np.float)
truth2 = truth[combined_mask].astype(float)

actual_prob, _, _ = binned_statistic(data2, truth2, bins=bins, statistic="mean")
m = np.isfinite(actual_prob) # All the -1 to 0 and 1 to 2 probs will be NaN
Expand Down

0 comments on commit 2a8f0f8

Please sign in to comment.