Skip to content

Commit af05b1b

Browse files
authored
np.float is depricated in numpy 1.24 (#130)
* np.float is depricated in numpy 1.24 --------- Co-authored-by: Dmitry Razdoburdin <>
1 parent 9370b18 commit af05b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modelbuilders_bench/mb_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_accuracy(true_labels, prediction):
2323
errors = 0
2424
for i, true_label in enumerate(true_labels):
2525
pred_label = 0
26-
if isinstance(prediction[i], (float, np.single, np.float)):
26+
if isinstance(prediction[i], (np.float32, np.float64)):
2727
pred_label = prediction[i] > 0.5
2828
elif prediction[i].shape[0] == 1:
2929
pred_label = prediction[i][0]

0 commit comments

Comments
 (0)