-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DOC Add versionchanged and versionadded for v0.20 #16199
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
DOC Add versionchanged and versionadded for v0.20 #16199
Conversation
This reverts commit 667c372.
…earn into version20-docstrings
Co-Authored-By: Adrin Jalali <[email protected]>
…scikit-learn into version20-docstrings
@borovikova let me know if you need help finishing those last two features 😃 I just finished my PR for documenting v.19 changes and would be happy to pair remotely |
@noatamir Thanks! But I have finished those so now there is nothing to do. At least until the PR is reviewed :-D |
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.
Thanks for the PR @borovikova @ellenkoenig, this will be useful
Made a few comments but this looks good in general.
Are you available to address these? You'll also need to merge with master.
Thanks for your patience!
Co-Authored-By: Nicolas Hug <[email protected]>
Co-Authored-By: Nicolas Hug <[email protected]>
Co-Authored-By: Nicolas Hug <[email protected]>
Co-Authored-By: Nicolas Hug <[email protected]>
…vikova/scikit-learn into version20-docstrings
…into version20-docstrings � Conflicts: � sklearn/linear_model/_stochastic_gradient.py � sklearn/model_selection/_search.py � sklearn/multiclass.py � sklearn/neighbors/_kde.py
@NicolasHug Thanks for the review! Everything is done except for that one case where I'm not sure what to do. |
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.
Thanks to you both, nice work!
@cmarmo if you're available to review this one, I think we would be OK to merge it after your approval
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.
Thanks for your work and your patience @borovikova
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.
Otherwise lgtm, thanks @borovikova!
@@ -179,6 +180,8 @@ def predict(self, X): | |||
------- | |||
is_inlier : ndarray of shape (n_samples,) | |||
Returns -1 for anomalies/outliers and +1 for inliers. | |||
|
|||
.. versionadded:: 0.20 |
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 don't think this indent is valid in this context
sklearn/covariance/_graph_lasso.py
Outdated
@@ -561,6 +561,9 @@ class GraphicalLassoCV(GraphicalLasso): | |||
``-1`` means using all processors. See :term:`Glossary <n_jobs>` | |||
for more details. | |||
|
|||
..versionchanged:: v0.20 |
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.
space after .. please
sklearn/covariance/_graph_lasso.py
Outdated
@@ -561,6 +561,9 @@ class GraphicalLassoCV(GraphicalLasso): | |||
``-1`` means using all processors. See :term:`Glossary <n_jobs>` | |||
for more details. | |||
|
|||
..versionchanged:: v0.20 | |||
`n_jobs` changed from ``1`` to ``None`` |
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.
Do we really need this level of detailed annotation?
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'm sorry I'm not sure I understand what you mean. Shall I remove the versionchanged docstring here?
@@ -603,8 +605,6 @@ class OrdinalEncoder(_BaseEncoder): | |||
|
|||
Read more in the :ref:`User Guide <preprocessing_categorical_features>`. | |||
|
|||
.. versionchanged:: 0.20.1 |
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.
We should note when OrdinalEncoder was added but maybe that's intentionality left for another pull request?
sklearn/utils/_show_versions.py
Outdated
"""Print useful debugging information""" | ||
"""Print useful debugging information" | ||
|
||
.. versionadded:: 0.20 |
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.
Please outdent this
Joel's comments have been addressed, merging Thanks again @borovikova @ellenkoenig, and @cmarmo for the review |
Co-Authored-By: Adrin Jalali <[email protected]> Co-Authored-By: Chiara Marmo <[email protected]> Co-Authored-By: Nicolas Hug <[email protected]>
Co-Authored-By: Adrin Jalali <[email protected]> Co-Authored-By: Chiara Marmo <[email protected]> Co-Authored-By: Nicolas Hug <[email protected]>
Towards to #15426
This PR will add versionchanged and versionadded label to parameters changed in v0.20
With @ellenkoenig
@WiMLDS_Berlin
@adrinjalali
@noatamir