Skip to content

Commit

Permalink
np.float is removed in numpy 1.24 (openai#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrywang authored Jan 20, 2023
1 parent d50d76d commit 3702849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ classifier.fit(train_features, train_labels)

# Evaluate using the logistic regression classifier
predictions = classifier.predict(test_features)
accuracy = np.mean((test_labels == predictions).astype(np.float)) * 100.
accuracy = np.mean((test_labels == predictions).astype(float)) * 100.
print(f"Accuracy = {accuracy:.3f}")
```

Expand Down

0 comments on commit 3702849

Please sign in to comment.