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
I reviewed the code: examples/sentiment/sst_classifier.py, and found a bug.
self.f1_measure = F1Measure(4)
I think this code is intended to measure precision/recall/f1 for the label '4' which is the most positive sentiment. However, the integer 4 here is considered as index in the array representation. It must be converted using label mapping stored in vocab.
The text was updated successfully, but these errors were encountered:
I reviewed the code: examples/sentiment/sst_classifier.py, and found a bug.
I think this code is intended to measure precision/recall/f1 for the label '4' which is the most positive sentiment. However, the integer 4 here is considered as index in the array representation. It must be converted using label mapping stored in vocab.
The text was updated successfully, but these errors were encountered: