Plotting cnn_learner accuracy (or any metric) by epoch after training (v2.4)

I have tried using learn.recorder.plot_metrics() but get the following error:

ModuleAttributeError: ‘Sequential’ object has no attribute ‘plot_metrics()’

I am trying to plot a similar graph to this in order to help me choose which epoch to stop to prevent overfitting:

I have tried using SaveModelCallBack() as well, but cannot include accuracy along w/ valid and train loss?


Thank you!!

Hi @hector.ferronato
since you started to use callbacks you might be intrested in Tracker Callbacks. I think that would be even more helpful, than choosing the epochs based on the accuracy graph.