From 3702849800aa56e2223035bccd1c6ef91c704ca8 Mon Sep 17 00:00:00 2001 From: Harry Wang Date: Fri, 20 Jan 2023 14:31:18 -0500 Subject: [PATCH] np.float is removed in numpy 1.24 (#315) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index abc8a34..e4feb99 100644 --- a/README.md +++ b/README.md @@ -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}") ```