You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using PL for a while now and am just getting around to switching all of my code over to a newer version (0.9.0 from 0.6.0). I would like to switch over to using the newer TrainResult and EvalResult types instead of plain dictionaries. In the past I used a ModelCheckpoint() that I passed into the trainer with the monitor and mode options set. Now using the EvalResult type and passing it a 'checkpoint_on' option, I dont know how to specify a mode (min or max). Is this possible? Looking through the code it seems like maybe you can still pass a 'mode' through the ModelCheckpoint() but this seems a bit strange since it splits up what you are monitoring and whether its a min or max into two different places that you have to specify (one in my model and another in the ModelCheckpoint() ). Is this right? If so would it make sense to add the ability to pass a mode in with the {Train/Eval}Result as well?
The text was updated successfully, but these errors were encountered:
mode is currently passed to ModelCheckpoint. I am with you in that it is confusing having the metric and the mode in different places. We have a discussion over at #3286 about how we should fix it.
This issue has been automatically marked as stale because it hasn't had any recent activity. This issue will be closed in 7 days if no further activity occurs. Thank you for your contributions, Pytorch Lightning Team!
What is your question?
I have been using PL for a while now and am just getting around to switching all of my code over to a newer version (0.9.0 from 0.6.0). I would like to switch over to using the newer TrainResult and EvalResult types instead of plain dictionaries. In the past I used a ModelCheckpoint() that I passed into the trainer with the monitor and mode options set. Now using the EvalResult type and passing it a 'checkpoint_on' option, I dont know how to specify a mode (min or max). Is this possible? Looking through the code it seems like maybe you can still pass a 'mode' through the ModelCheckpoint() but this seems a bit strange since it splits up what you are monitoring and whether its a min or max into two different places that you have to specify (one in my model and another in the ModelCheckpoint() ). Is this right? If so would it make sense to add the ability to pass a mode in with the {Train/Eval}Result as well?
The text was updated successfully, but these errors were encountered: