-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG + 1 (rv) + 1 (alex) + 1] Add a check to test the docstring params and their order #9206
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
Conversation
Update with master and fix merge conflicts
These need fixing - EDIT: Fixed E sklearn.covariance.outlier_detection.__init__ arg mismatch: ['random_state'] (EllipticEnvelope)
E sklearn.decomposition.fastica_.transform copy != y (FastICA)
E sklearn.decomposition.fastica_.transform y != copy (FastICA)
E sklearn.linear_model.coordinate_descent.enet_path arg mismatch: ['params']
E sklearn.linear_model.coordinate_descent.enet_path arg mismatch: ['params'] (ElasticNet)
E sklearn.linear_model.coordinate_descent.enet_path arg mismatch: ['params'] (ElasticNetCV)
E sklearn.linear_model.coordinate_descent.enet_path arg mismatch: ['params'] (Lasso)
E sklearn.linear_model.coordinate_descent.enet_path arg mismatch: ['params'] (MultiTaskElasticNet)
E sklearn.linear_model.coordinate_descent.enet_path arg mismatch: ['params'] (MultiTaskElasticNetCV)
E sklearn.linear_model.coordinate_descent.enet_path arg mismatch: ['params'] (MultiTaskLasso)
E sklearn.linear_model.coordinate_descent.lasso_path arg mismatch: ['params']
E sklearn.linear_model.coordinate_descent.lasso_path arg mismatch: ['params'] (LassoCV)
E sklearn.linear_model.coordinate_descent.lasso_path arg mismatch: ['params'] (MultiTaskLassoCV)
E sklearn.preprocessing.data.inverse_transform arg mismatch: ['X'] (QuantileTransformer)
E sklearn.preprocessing.data.transform arg mismatch: ['copy'] (Binarizer)
E sklearn.preprocessing.data.transform arg mismatch: ['copy'] (Normalizer)
E sklearn.preprocessing.data.transform arg mismatch: ['copy'] (StandardScaler) |
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.
The thing that's missing here (but can be in a future PR) is advice to developers (for the main project and for contrib). In general, we have some updates to issue contrib (including changing dependency versions).
Otherwise, LGTM on the basis of a fairly superficial review.
flake8
|
Does that flake mean something isn't being run?? |
@@ -312,6 +312,9 @@ def linkage_tree(X, connectivity=None, n_components=None, | |||
be symmetric and only the upper triangular half is used. | |||
Default is None, i.e, the Ward algorithm is unstructured. | |||
|
|||
n_components : int (optional) |
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.
This parameter is unused. See #9307
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.
(You don't want this addressed in this PR right?)
Let's merge this if you are happy? @jnothman @agramfort |
any idea why appveyor is not happy? |
That seems to be because of #9317. should be fixed after that is merged and I update master. Or you can do it separately too. It should not break anything. |
please rebase so we merge a green PR
|
I think it's safe to merge without waiting for appveyor @agramfort (more delay leads to merge conflicts. especially after sprints) |
all green ! thx @raghavrv |
would one of you like to contribute this to numpydoc?
…On 12 Jul 2017 2:42 am, "Alexandre Gramfort" ***@***.***> wrote:
Merged #9206 <#9206>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9206 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEz6851EYeAqLjvIumEvNTk7OdY2ME1ks5sM6XlgaJpZM4ODclJ>
.
|
…s and their order (scikit-learn#9206) * add automatic test of docstrings for function / method signatures using numpydoc
Release 0.19b2 * tag '0.19b2': (808 commits) Preparing 0.19b2 [MRG+1] FIX out of bounds array access in SAGA (scikit-learn#9376) FIX make test_importances pass on 32 bit linux Release 0.19b1 DOC remove 'in dev' header in whats_new.rst DOC typos in whats_news.rst [ci skip] [MRG] DOC cleaning up what's new for 0.19 (scikit-learn#9252) FIX t-SNE memory usage and many other optimizer issues (scikit-learn#9032) FIX broken link in gallery and bad title rendering [MRG] DOC Replace \acute by prime (scikit-learn#9332) Fix typos (scikit-learn#9320) [MRG + 1 (rv) + 1 (alex) + 1] Add a check to test the docstring params and their order (scikit-learn#9206) DOC Residual sum vs. regression sum (scikit-learn#9314) [MRG] [HOTFIX] Fix capitalization in test and hence fix failing travis at master (scikit-learn#9317) More informative error message for classification metrics given regression output (scikit-learn#9275) [MRG] COSMIT Remove unused parameters in private functions (scikit-learn#9310) [MRG+1] Ridgecv normalize (scikit-learn#9302) [MRG + 2] ENH Allow `cross_val_score`, `GridSearchCV` et al. to evaluate on multiple metrics (scikit-learn#7388) Add data_home parameter to fetch_kddcup99 (scikit-learn#9289) FIX makedirs(..., exists_ok) not available in Python 2 (scikit-learn#9284) ...
* releases: (808 commits) Preparing 0.19b2 [MRG+1] FIX out of bounds array access in SAGA (scikit-learn#9376) FIX make test_importances pass on 32 bit linux Release 0.19b1 DOC remove 'in dev' header in whats_new.rst DOC typos in whats_news.rst [ci skip] [MRG] DOC cleaning up what's new for 0.19 (scikit-learn#9252) FIX t-SNE memory usage and many other optimizer issues (scikit-learn#9032) FIX broken link in gallery and bad title rendering [MRG] DOC Replace \acute by prime (scikit-learn#9332) Fix typos (scikit-learn#9320) [MRG + 1 (rv) + 1 (alex) + 1] Add a check to test the docstring params and their order (scikit-learn#9206) DOC Residual sum vs. regression sum (scikit-learn#9314) [MRG] [HOTFIX] Fix capitalization in test and hence fix failing travis at master (scikit-learn#9317) More informative error message for classification metrics given regression output (scikit-learn#9275) [MRG] COSMIT Remove unused parameters in private functions (scikit-learn#9310) [MRG+1] Ridgecv normalize (scikit-learn#9302) [MRG + 2] ENH Allow `cross_val_score`, `GridSearchCV` et al. to evaluate on multiple metrics (scikit-learn#7388) Add data_home parameter to fetch_kddcup99 (scikit-learn#9289) FIX makedirs(..., exists_ok) not available in Python 2 (scikit-learn#9284) ...
* dfsg: (808 commits) Preparing 0.19b2 [MRG+1] FIX out of bounds array access in SAGA (scikit-learn#9376) FIX make test_importances pass on 32 bit linux Release 0.19b1 DOC remove 'in dev' header in whats_new.rst DOC typos in whats_news.rst [ci skip] [MRG] DOC cleaning up what's new for 0.19 (scikit-learn#9252) FIX t-SNE memory usage and many other optimizer issues (scikit-learn#9032) FIX broken link in gallery and bad title rendering [MRG] DOC Replace \acute by prime (scikit-learn#9332) Fix typos (scikit-learn#9320) [MRG + 1 (rv) + 1 (alex) + 1] Add a check to test the docstring params and their order (scikit-learn#9206) DOC Residual sum vs. regression sum (scikit-learn#9314) [MRG] [HOTFIX] Fix capitalization in test and hence fix failing travis at master (scikit-learn#9317) More informative error message for classification metrics given regression output (scikit-learn#9275) [MRG] COSMIT Remove unused parameters in private functions (scikit-learn#9310) [MRG+1] Ridgecv normalize (scikit-learn#9302) [MRG + 2] ENH Allow `cross_val_score`, `GridSearchCV` et al. to evaluate on multiple metrics (scikit-learn#7388) Add data_home parameter to fetch_kddcup99 (scikit-learn#9289) FIX makedirs(..., exists_ok) not available in Python 2 (scikit-learn#9284) ...
…s and their order (scikit-learn#9206) * add automatic test of docstrings for function / method signatures using numpydoc
…s and their order (scikit-learn#9206) * add automatic test of docstrings for function / method signatures using numpydoc
…s and their order (scikit-learn#9206) * add automatic test of docstrings for function / method signatures using numpydoc
…s and their order (scikit-learn#9206) * add automatic test of docstrings for function / method signatures using numpydoc
…s and their order (scikit-learn#9206) * add automatic test of docstrings for function / method signatures using numpydoc
…s and their order (scikit-learn#9206) * add automatic test of docstrings for function / method signatures using numpydoc
…s and their order (scikit-learn#9206) * add automatic test of docstrings for function / method signatures using numpydoc
Taking over Alex's #9023
Fixes #7758
Also refer alternative implementation at #7793
What does this implement/fix? Explain your changes.
This adds a unit test to check that all parameters are documented and in the right order.
cc: @agramfort @neerajgangwar