diff --git a/learning4e.py b/learning4e.py index 12c0defa5..5669c453e 100644 --- a/learning4e.py +++ b/learning4e.py @@ -910,7 +910,7 @@ def weighted_replicate(seq, weights, n): def accuracy_score(y_pred, y_true): assert y_pred.shape == y_true.shape - return np.mean(np.equal(y_pred, y_true)) + return np.mean(y_pred == y_true) def r2_score(y_pred, y_true): 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