Collect fit_one_cycle output

I am trying to collect the metrics outputted by fit_one_cycle in order to make a while loop that runs until the valid_loss and train_loss hits a certain value. Is there a way to do this?

Iā€™d recommend looking at the source code for EarlyStoppingCallback and adjust it to search for your specified value probably.


In case someone runs across this question, this has been implemented with TrackerCallback and get_monitor_value()

Fastai2 callbacks can be found here: