How do I access the training accuracy?

I want to display the training accuracy on epoch end.
What is the proper way to access it?

You can’t display it with the others but you can compute it by typing learn.validate(ds_type=DatasetType.Train).


I am using fastai==2.3.0, fastcore==1.3.19. I want to get the validation accuracy after training the text classifier learner (learn.fit_one_cycle) to perform hyperparameter tuning. How can I get that in stdout?

learn.validate() returns the validation loss & metrics.

1 Like