Precision, Recall and F1 with Sklearn for a Multiclass problem
Precision, Recall and F1 with Sklearn for a Multiclass problem Question: I have a Multiclass problem, where 0 is my negative class and 1 and 2 are positive. Check the following code: import numpy as np from sklearn.metrics import confusion_matrix from sklearn.metrics import ConfusionMatrixDisplay from sklearn.metrics import f1_score from sklearn.metrics import precision_score from sklearn.metrics import …