I want to calculate kappa score for a multi label image classification problem.
I don't think sklearn supports this inherently because when i try this
import sklearn
sklearn.metrics.cohen_kappa_score(y_test, predictions)
i get
ValueError: multilabel-indicator is not supported
anyone has suggestions on how to do this? My prediction matrix is of shape(845,8) with 0 and 1 in them. My ground truth matrix is of shape (845,8) with 0 and 1 in them
My labels look like this
[0,0,1,0,1,0,1,0]
thanks in advance.
#######EDITplease provide relevant code.Alteast a small snippet.
from Calculate kappa score for multi label image classifcation
No comments:
Post a Comment