The goal of this exercise is to learn to use sklearn.metrics to compute the accuracy.
sklearn.metrics
y_true
y_pred
y_pred = [0, 1, 0, 1, 0, 1, 0] y_true = [0, 0, 1, 1, 1, 1, 0]