Hello!
I understand the fastai text classification. I have text classes. Each time the classifier randomly assigns numbers to classes and classifies them. Is it possible to somehow simply find out which numbers correspond to my classes?
learn.data.train_ds.classes
should give you a list of the classes, where the index of the class should correspond the the number the classifier spits out.
3 Likes
Thanks so much