Tencent / NeuralNLP-NeuralClassifier

An Open-source Neural Hierarchical Multi-label Text Classification Toolkit
Other
1.85k stars 406 forks source link

Different formula used for Macro F1 #55

Closed soumyac1999 closed 4 years ago

soumyac1999 commented 4 years ago

The formula for macro F1 given in "Recursive Regularization for Large-scale Classification with Hierarchical and Graphical Dependencies" paper is image

But your code uses image

Is there any reason for this?

coderbyr commented 4 years ago

The formula for macro F1 given in "Recursive Regularization for Large-scale Classification with Hierarchical and Graphical Dependencies" paper is image

But your code uses image

Is there any reason for this? the latter is more common than the former, both are right when you choose the same one to compare performance of different methods.