Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is F1 score calculated in Divide, Conquer and Combine... paper? #2

Open
yiwang454 opened this issue Feb 4, 2021 · 4 comments
Open

Comments

@yiwang454
Copy link

Hi Sijie @TmacMai,

I just started working on multimodal learning using CMU-MOSEI, and I was wondering how the F1 scores evaluated on CMU-MOSEI dataset was calculated? Was it done by calculating F1 score for each emotion first and getting an average afterwards?

Thank you for your reply in advance

@yiwang454
Copy link
Author

Also, I'm wondering how you dealt with multi-class classification taking into account that some of the utterances are labelled with several annotations (e.g. some utterances can have emotion labels like ['0.56', '0.11', '0.11', '0.22', '0.00', '0.00'])

@TmacMai
Copy link
Owner

TmacMai commented Feb 6, 2021

Hi Sijie @TmacMai,

I just started working on multimodal learning using CMU-MOSEI, and I was wondering how the F1 scores evaluated on CMU-MOSEI dataset was calculated? Was it done by calculating F1 score for each emotion first and getting an average afterwards?

Thank you for your reply in advance

Hi, thanks for your attention to our work. The calculation of F1 scores for CMU-MOSEI dataset is shown in https://github.com/TmacMai/ARGF_multimodal_fusion, where we place the code and the data for our AAAI-20 paper. You can easily read the code or run it directly.

@TmacMai
Copy link
Owner

TmacMai commented Feb 6, 2021

Also, I'm wondering how you dealt with multi-class classification taking into account that some of the utterances are labelled with several annotations (e.g. some utterances can have emotion labels like ['0.56', '0.11', '0.11', '0.22', '0.00', '0.00'])

It seems that the sum of all the emotional scores is equal to 1? This is a much more complex case. You can still use the softmax function on the output, but corss-entropy is not suggested. You might apply a MSE loss to update your model? Considering that the label of each single emotion is not binary (0 or 1), I would suggest you to use regression metrics (MAE, Corr, etc.) to evaluate your model. If the label is binary, one common way to deal with multi-class classification is to decouple the prediction of each emotion into a binary classification task (such as the dim of the output can be set to n*2 where n is the number of emotions, and use each 2 dimension to represent the probability of a certain kind of emotion). I'm not sure whether I have make myself clear. Feel free to discuss with me if you have any more questions.

1 similar comment
@TmacMai
Copy link
Owner

TmacMai commented Feb 6, 2021

Also, I'm wondering how you dealt with multi-class classification taking into account that some of the utterances are labelled with several annotations (e.g. some utterances can have emotion labels like ['0.56', '0.11', '0.11', '0.22', '0.00', '0.00'])

It seems that the sum of all the emotional scores is equal to 1? This is a much more complex case. You can still use the softmax function on the output, but corss-entropy is not suggested. You might apply a MSE loss to update your model? Considering that the label of each single emotion is not binary (0 or 1), I would suggest you to use regression metrics (MAE, Corr, etc.) to evaluate your model. If the label is binary, one common way to deal with multi-class classification is to decouple the prediction of each emotion into a binary classification task (such as the dim of the output can be set to n*2 where n is the number of emotions, and use each 2 dimension to represent the probability of a certain kind of emotion). I'm not sure whether I have make myself clear. Feel free to discuss with me if you have any more questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants