Skip to content

Commit 3702849

Browse files
authoredJan 20, 2023
np.float is removed in numpy 1.24 (#315)
1 parent d50d76d commit 3702849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ classifier.fit(train_features, train_labels)
186186

187187
# Evaluate using the logistic regression classifier
188188
predictions = classifier.predict(test_features)
189-
accuracy = np.mean((test_labels == predictions).astype(np.float)) * 100.
189+
accuracy = np.mean((test_labels == predictions).astype(float)) * 100.
190190
print(f"Accuracy = {accuracy:.3f}")
191191
```
192192

0 commit comments

Comments
 (0)
Please sign in to comment.