Multilabel, Multiclass accuracy : how to calculate accuracy for Multiclass, Multilabel classification?
问题 I am working on a multilabel and multiclass classification framework, I want to add matrices for multilabel and multiclass accuracy calculation. Here is demo data : predicted_labels = [[1,0,0,0,1],[1,0,0,0,1],[1,0,0,0,1],[1,0,0,0,1],[1,0,0,0,1],[1,0,1,0,1]] true_labels = [[1,1,0,0,1],[1,0,0,1,1],[1,0,0,0,1],[1,1,1,0,1],[1,0,0,0,1],[1,0,0,0,1]] Most popular accuracy matrices for multi-label, multi-class classification are : Hamming score Hamming loss Subset accuracy The code for the above