How do I extract the basic metrics such as train_loss,valid_loss, error_rate and store them into a variable?

This is a pretty basic question. Can someone tell me how I could access these variables?

2 Likes

Look inside learn.recorder

1 Like

I was wondering the same thing and thanks to @Tom2718 I was able to grab the most recent error_rate in lesson1-pets (which only uses the error_rate metric):

float(learn.recorder.metrics[-1][0])

2 Likes