Skip to content

Commit 496ea45

Browse files
committed
feat: merge PR aimacode#1292
1 parent cdf2e53 commit 496ea45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

learning4e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ def weighted_replicate(seq, weights, n):
910910

911911
def accuracy_score(y_pred, y_true):
912912
assert y_pred.shape == y_true.shape
913-
return np.mean(np.equal(y_pred, y_true))
913+
return np.mean(y_pred == y_true)
914914

915915

916916
def r2_score(y_pred, y_true):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy