I have a 3-class classification problem.
My predicted labels consist of all three classes.
However, my target labels have only 2 of the three classes present.
For example:
predicted = [1,1,2,3,2,1]
target = [1,1,2,2,2,1]
How should I go about computing the F1 score in this case?
I'm currently using sklearn's f1_score function with macro average.
But this leads to a low F1 score value for cases like above.