Create data object and fit model
Trying to get the model to predict on the validation set. Expected 93.8% accuracy but get 1.0%
At the same time learner.validate seems to produce the right number:
Now I am trying really hard to reproduce the 93.9% accuracy indicated by the training print out and get.validate. I tried to loop through each row in the validation df frame get the prediction individually.
However, the result accuracy still differes from 93.9%
Question:
- How do I get predictions from learn object properly?
- Why are accuracy numbers all over the place between learn.get_preds() learn.validate() and
training print out ? - How do I get predictions from test data in the original order from TextClasDataBunch 's test dataset
(No random order)