-
Notifications
You must be signed in to change notification settings - Fork 548
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
Fix hyperparameter predictorbase #832
Fix hyperparameter predictorbase #832
Conversation
Thanks for the PR! @hwpang are these test failures because the saved checkpoints include the hyperparameters which are now ignored in this PR? |
When I run pytest locally on the original code I get: 2 failed, 660 passed, 15 skipped, 560 warnings in 940.00s (0:15:39) My code produces: 17 failed, 645 passed, 15 skipped, 421 warnings in 930.48s (0:15:30)
Edit Edit 2 |
@hwpang could you review? Not sure which of these lines are actually required. Pretty sure we need to rebuild the checkpoint files with these |
Thanks for the PR! This seems fine to me. Could you run this script? The script will regenerate all the checkpoint files we use for tests. After you run the script, please commit those new checkpoint files and push to this PR. This will run the tests with the newly generated checkpoints to ensure that they are indeed correct and compatible. |
…' into fix_hyperparameter_predictorbase
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.
LGTM
Based on #898, I don't think the checkpoint files needed to be rebuilt because this PR just manually saves @hwpang or @JacksonBurns can one of you check my thinking on this? |
I'm not sure, deferring this to your judgement |
@KnathanM Thanks for tagging me! I looked into this and the tldr is that the checkpoint file has changed slightly, but they are equivalent. Using the previous method
And
Using the current method by setting ignore and saving the
And the state dict has
The only difference I have observed is that the criterion is saved explicitly when we use the manual method. But either of these model files should produce the same predictions when used in inference. |
Description
This PR fixes warnings from lightning, caused by setting parameters.
(Also removes a duplicate line)
Example / Current workflow
Bugfix / Desired workflow
See PR