How to Calculate F1 measure in multi-label classification?
问题 I am working on sentence category detection Problem. Where each sentence can belong to multiple categories for Example: "It has great sushi and even better service." True Label: [[ 0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 1.]] Pred Label: [[ 0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 1.]] Correct Prediction! Output: ['FOOD#QUALITY' 'SERVICE#GENERAL'] I have implemented a classifier that can predict multiple categories. I have total 587 sentences that belongs to multiple categories. I have calculated the