-
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
WIP:removed unused Trainer kwargs from init #1180
WIP:removed unused Trainer kwargs from init #1180
Conversation
FYI: all other usecases seems to be ok |
@tullie @williamFalcon do you remember why we had it there? |
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 🚀
@Borda You were right about the inheritance. The base class needs to pass the arguments to the child class (the base class cannot know the argument at the time of writing). See Marking the PR WIP |
Maybe we can check if the Trainer is a final class i.e. the constructor is not called from derived class and then performed check on arguments let me think about how to do it properly |
Codecov Report
@@ Coverage Diff @@
## master #1180 +/- ##
======================================
Coverage 89% 89%
======================================
Files 62 62
Lines 3164 3164
======================================
Hits 2810 2810
Misses 354 354 |
i think it’s there to support inheritance. this is kind of a trivial change that might do more harm than good down the road as we keep evolving the package. my suggestion is to keep it as is. |
exactly it was my justification when we talked about it in slack and later it was verified by @oplatek so I am closing this on... |
Before submitting
discussed on slack
current tests should cover this
What does this PR do?
It removes kwargs from Trainer which are not used.
My take on using kwargs on function:
All kwargs should have a consumer.
Did you have fun?
🙃