Exercises / ml
Accuracy from labels
accuracy(y_true, y_pred) is the fraction of matches. Print accuracy of [0,1,1,0] vs [0,1,0,0].
Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.
Exercises / ml
accuracy(y_true, y_pred) is the fraction of matches. Print accuracy of [0,1,1,0] vs [0,1,0,0].
Run to execute this in your browser. Nothing is sent to a server.