Skip to content

Commit 5764fba

Browse files
harrywangrom1504
authored andcommitted
np.float is removed in numpy 1.24 (openai#315)
1 parent 8b693f8 commit 5764fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ classifier.fit(train_features, train_labels)
202202

203203
# Evaluate using the logistic regression classifier
204204
predictions = classifier.predict(test_features)
205-
accuracy = np.mean((test_labels == predictions).astype(np.float)) * 100.
205+
accuracy = np.mean((test_labels == predictions).astype(float)) * 100.
206206
print(f"Accuracy = {accuracy:.3f}")
207207
```
208208

0 commit comments

Comments
 (0)