SyntaxFix
Write A Post
Hire A Developer
Questions
Just use
y_pred = (y_pred > 0.5) accuracy_score(y_true, y_pred, normalize=False)