-
Notifications
You must be signed in to change notification settings - Fork 17
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
Reformatting and naming #94
Conversation
Merging this PR will be a bit painful, since it might introduce a lot conflicts with other PR. Should we try to get this one through as quickly as possible (and rebase other PR), or wait for other PR to be merged first and rebase this one? EDIT: missed you edit in the top comment 😃. So the plan is to do all of this piecewise? That sounds good! |
6c373b4
to
c59f946
Compare
So I think my plan is this, because this checklist was easier to get through than I anticipated. Given that |
Enforce them during the review you mean? Or automatically? I'm good if we enforce them manually during a review, using automatic tools would be harder. |
100% agree. I'll add to our internal resources this list for comparison |
302a8e6
to
3427c03
Compare
added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods change the default variables and docs Applying formatting consistent with #94
9d2415d
to
3135583
Compare
added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods change the default variables and docs Applying formatting consistent with #94
added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods replaced the absolute tolerance with a relative tolerance added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods change the default variables and docs Applying formatting consistent with #94 added copy parameter
added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods replaced the absolute tolerance with a relative tolerance added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods change the default variables and docs Applying formatting consistent with #94 added copy parameter
added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods replaced the absolute tolerance with a relative tolerance added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods change the default variables and docs Applying formatting consistent with #94 added copy parameter
added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods replaced the absolute tolerance with a relative tolerance added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods change the default variables and docs Applying formatting consistent with #94 added copy parameter
added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods replaced the absolute tolerance with a relative tolerance added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods change the default variables and docs Applying formatting consistent with #94 added copy parameter
3135583
to
0dbbdc0
Compare
* replaced the absolute tolerance with a relative tolerance added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods replaced the absolute tolerance with a relative tolerance added atol, added tests for atol and rtol, expanded and unified documentation, added description of methods change the default variables and docs Applying formatting consistent with #94 added copy parameter * Changed rtol and atol defaults Co-authored-by: rosecers <rosecersonsky@gmail.com>
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.
Looks good.
I think only preprocessing/flexible_scaler.py
should be renamed to preprocessing/_data.py
if we follow sklearn with their StandardScaler, what do you think?
https://github.com/scikit-learn/scikit-learn/blob/95119c13a/sklearn/preprocessing/_data.py#L564
EDIT: It can also exist in its own file, I just think it should also have an underscore following the naming convention of sklearn
0dbbdc0
to
28ea13b
Compare
Ooh good catch! I was planning on this, following #91, just hadn't remembered to do so. |
I think we are not doing this in the moment in the test
namely in
Its a bit frustrating that they only mention that this could lead to issues, but don't say what kind of issues. But it make sense to have a consistent random state functionality. I already have changed I think the other points don't match any part of the code. EDIT: Sorry I misclicked when commenting |
…nd made requisite changes Renaming utils with leading underscore
…bute on the instance. In init, there should be no logic, not even input validation, and the parameters should not be changed. The corresponding logic should be put where the parameters are used, typically in fit. Adding fit before checking alpha
checked for absolute imports in tests checked for import * anywhere
4657bf4
to
baa42f9
Compare
@Luthaf something fishy is going on with |
Changed all random instances to RandomStates
baa42f9
to
5afaf03
Compare
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.
looks good to me
This is an on-going PR with a few goals (from https://scikit-learn.org/stable/developers/develop.html#coding-guidelines and elsewhere)
Some of these things I anticipate will take place in other PRs, such as the docstring reformatting in #82 and the everything reformatting in #93.