-
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
_launch
refactor and types [1/n]
#7232
Conversation
_fit_impl
refactor and types_fit_impl
refactor and types [1/n]
Codecov Report
@@ Coverage Diff @@
## master #7232 +/- ##
=======================================
- Coverage 91% 90% -2%
=======================================
Files 198 199 +1
Lines 12725 13216 +491
=======================================
+ Hits 11633 11859 +226
- Misses 1092 1357 +265 |
@@ -860,14 +830,50 @@ def run_sanity_check(self, ref_model): | |||
# prevents sanity check to affect random sampling in training | |||
reset_seed() | |||
|
|||
def fit( |
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.
don't we want to move this up? It would be nice if the entry points fit, validate, test came first.
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.
Agree. Let's try to organise, so it is simple to follow.
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.
I'll do this in a separate PR. Keeping them where they are for now so they are together
@@ -860,14 +830,50 @@ def run_sanity_check(self, ref_model): | |||
# prevents sanity check to affect random sampling in training | |||
reset_seed() | |||
|
|||
def fit( |
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.
Agree. Let's try to organise, so it is simple to follow.
_fit_impl
refactor and types [1/n]_launch
refactor and types [1/n]
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 !
Hello @carmocca! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-04-28 14:36:20 UTC |
@@ -408,36 +409,13 @@ def __init__( | |||
# Callback system | |||
self.on_init_end() | |||
|
|||
def fit( | |||
def _launch( |
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.
Nit : I prefer _run or _execute vs launch, which I associate more with distributed launch/process creation
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.
Bit late as it is already merged, but if you want to open a PR with the renaming change, that's fine by me! 👍
What does this PR do?
fit()
and_launch()
to avoidif
checks for state infit()
. Suggested by @ananthsub:TrainerState
refactor [5/5] #7173 (comment)stage
was not being set back totuning
after the tuner callsfit
internallyFixes #7242
Before submitting
PR review