-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable None model checkpoint default #3669
Conversation
Hello @williamFalcon! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-09-27 02:39:06 UTC |
@@ -336,6 +340,13 @@ def on_validation_end(self, trainer, pl_module): | |||
metrics = trainer.logger_connector.callback_metrics | |||
epoch = trainer.current_epoch | |||
|
|||
# backward compatibility... need to deprecate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these need to check if self.monitor is None
before resetting it to the older defaults right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup! sorry, i think i removed the WIP too soon haha. but good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ended up just doing a much needed clean up to maintain sanity haha
@@ -513,7 +513,6 @@ def run_sanity_check(self, ref_model): | |||
self.on_sanity_check_end() | |||
self.running_sanity_check = False | |||
|
|||
@trainer_state(entering=TrainerState.RUNNING, exiting=TrainerState.FINISHED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Borda let's please get rid of these... makes readability impossible (and IDE inspection)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, we can remove wrappers, just keep the state assignment..
Since we don't know what to monitor, we are using None as the default going forward.
Now if a user wants to monitor a value, they have to specify a monitor value in the callback.
This is an intermediate step to getting rid of the magic keywords for checkpoint and ES