1>>> from sklearn.metrics import accuracy_score
2>>> y_pred = [0, 2, 1, 3]
3>>> y_true = [0, 1, 2, 3]
4>>> accuracy_score(y_true, y_pred)
50.5
6>>> accuracy_score(y_true, y_pred, normalize=False)
72
1// syntax:
2// - sklearn.metrics.accuracy_score(y_true, y_pred, *, normalize=True, sample_weight=None)