Correct numeric labels for classification?
Hello,This is a simple question but better safe than sorry! My understanding is that thetransformersclass of models (for text classification) can only deal with integer labels as classes.So it’s up to the user to provide a mapping between labels and scores. In the usual example one could have0  = negative,1 = neutral,2 = positive.Here is the basic question: do the numeric scores necessarily need to be integers from 0 to N (the number of classes) or I can use any other numbers of my liking?Thanks!
2021-09-29T18:16:01Z
yes, I can confirm the labels have to be integers starting at zero. I still wonder what is the mathematical reason for that? Any ideas@nielsrby any chance?Thanks!