You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for providing the code for your wonderful work.
I have a doubt about the WA and UA metrics. As far as I understand, "Weighted accuracy is computed by taking the average, over all the classes, of the fraction of correct predictions in this class (i.e. the number of correctly predicted instances in that class, divided by the total number of instances in that class). Unweighted accuracy is the fraction of instances predicted correctly (i.e. total correct predictions, divided by total instances). Unweighted accuracy gives the same weight to each class, regardless of how many samples of that class the dataset contains. Weighted accuracy weighs each class according to the number of samples that belong to that class in the dataset."
Hi David,
Thanks a lot for providing the code for your wonderful work.
I have a doubt about the WA and UA metrics. As far as I understand, "Weighted accuracy is computed by taking the average, over all the classes, of the fraction of correct predictions in this class (i.e. the number of correctly predicted instances in that class, divided by the total number of instances in that class). Unweighted accuracy is the fraction of instances predicted correctly (i.e. total correct predictions, divided by total instances). Unweighted accuracy gives the same weight to each class, regardless of how many samples of that class the dataset contains. Weighted accuracy weighs each class according to the number of samples that belong to that class in the dataset."
However, in your code "https://github.com/david-yoon/attentive-modality-hopping-for-SER/blob/master/util/measure_WA_UA.py", you have given the parameter 'sample weight' for the 'unweighted_accuracy' function. Also, the discussion in issue (#1) seems to indicate the exact opposite of my understanding of WA and UA metrics. Could you kindly clarify?
Thanks,
VR
The text was updated successfully, but these errors were encountered: