Before any per-class metric there is a confusion matrix, and building one with two nested loops over classes is the answer that gets you asked to try again.
Implement confusion_matrix(y_true, y_pred, n_classes). Given two integer arrays of the same length whose values are class indices in [0, n_classes), return an (n_classes, n_classes) integer array where entry [i, j] is the number of samples whose true class is i and whose predicted class is j.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in