-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
put in version_added label for ARDRegression (and many others): Issue #15426 #15482
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
put in version_added label for ARDRegression (and many others): Issue #15426 #15482
Conversation
Tversions
This reverts commit ef7d51f.
This reverts commit 56226ec.
…it-learn into version_docstrings
Version docstrings
…roupOut, LeavePGroupsOut: Issue scikit-learn#15426
Add versionadded and versionchanged docstrings
…rn into adding_version Merging my work with the other group's so that our versionadded labels all get added at the same time.
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 a lot for this !
some comments..
@@ -113,7 +113,8 @@ class TruncatedSVD(TransformerMixin, BaseEstimator): | |||
sign of the ``components_`` and the output from transform depend on the | |||
algorithm and random state. To work around this, fit instances of this | |||
class to data once, then keep the instance around to do transformations. | |||
|
|||
|
|||
..versionadded:: v0.14 |
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 think we usually don't add the v
(here and there is your PR)
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 branch is a compilation of several different groups, so it looks like some of them put in v for version, but I agree it shouldn't be there. Should I go through and fix the formatting or is there a better process for handling that?
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.
Yes you should fix them
sklearn/ensemble/_gb_losses.py
Outdated
@@ -527,6 +527,8 @@ def _raw_prediction_to_proba(self, raw_predictions): | |||
------- | |||
probas : 2d array, shape (n_samples, K) | |||
The predicted probabilities. | |||
|
|||
.. versionadded:: 0.20.3 |
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.
What is the reason you chose 0.20.3 over 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 can change it to 0.20. I have no idea why 20.3 was chosen.
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 do :)
sklearn/feature_extraction/text.py
Outdated
@@ -979,6 +979,17 @@ class CountVectorizer(_VectorizerMixin, BaseEstimator): | |||
The ``stop_words_`` attribute can get large and increase the model size | |||
when pickling. This attribute is provided only for introspection and can | |||
be safely removed using delattr or set to None before pickling. | |||
|
|||
..versionchanged:: v0.22 | |||
Raise warning of parameter choide means the another parameter unused |
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 am pretty sure we do not want to be that specific, though I don't know what would be a good rule of thumb to pick only the major changes.
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.
Ok I'm going to go through and remove all versionchanged tags, since we were only supposed to put in versionadded (according to the lead developer at our sprint). If we want to add in the versionchanged tags someone should put in a request for that with more details.
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.
Sounds good to me
@@ -0,0 +1,6 @@ | |||
Merge branch 'adding_version' of github.com:alekslovesdata/scikit-learn into adding_version |
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 file was included in the commit by mistake
Accepts non-finite features | ||
..versionadded:: v0.13 | ||
|
||
..versionadded:: 0.13 |
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.
..versionadded:: 0.13 | |
.. versionadded:: 0.13 |
@@ -189,6 +189,8 @@ class SpectralCoclustering(BaseSpectral): | |||
|
|||
Read more in the :ref:`User Guide <spectral_coclustering>`. | |||
|
|||
.. version:: 0.14 |
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.
.. version:: 0.14 | |
.. versionadded:: 0.14 |
@@ -187,6 +187,8 @@ class BaseBagging(BaseEnsemble, metaclass=ABCMeta): | |||
|
|||
Warning: This class should not be used directly. Use derived classes | |||
instead. | |||
|
|||
..versionadded:: 0.18 |
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.
..versionadded:: 0.18 | |
.. versionadded:: 0.18 |
@@ -1775,6 +1777,8 @@ def fit(self, raw_documents, y=None): | |||
Returns | |||
------- | |||
self : TfidfVectorizer | |||
|
|||
Raise warning if a parameter choice means that another parameter will be unused on calling the fit() method. |
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.
Cleaning left over
@@ -291,6 +291,8 @@ class TheilSenRegressor(RegressorMixin, LinearModel): | |||
- Theil-Sen Estimators in a Multiple Linear Regression Model, 2009 | |||
Xin Dang, Hanxiang Peng, Xueqin Wang and Heping Zhang | |||
http://home.olemiss.edu/~xdang/papers/MTSE.pdf | |||
|
|||
..versionadded:: v0.16 |
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.
..versionadded:: v0.16 | |
.. versionadded:: v0.16 |
@@ -759,6 +763,8 @@ class TimeSeriesSplit(_BaseKFold): | |||
max_train_size : int, optional | |||
Maximum size for a single training set. | |||
|
|||
..versionadded:: 0.19 |
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.
..versionadded:: 0.19 | |
.. versionadded:: 0.19 |
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 should be above, in the summary section
@@ -784,6 +790,8 @@ class TimeSeriesSplit(_BaseKFold): | |||
+ n_samples % (n_splits + 1)`` in the ``i``th split, | |||
with a test set of size ``n_samples//(n_splits + 1)``, | |||
where ``n_samples`` is the number of samples. | |||
|
|||
..versionadded:: v0.18 |
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.
..versionadded:: v0.18 | |
.. versionadded:: v0.18 |
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 should be above, in the summary section
@@ -746,6 +746,12 @@ class MultinomialNB(BaseDiscreteNB): | |||
C.D. Manning, P. Raghavan and H. Schuetze (2008). Introduction to | |||
Information Retrieval. Cambridge University Press, pp. 234-265. | |||
https://nlp.stanford.edu/IR-book/html/htmledition/naive-bayes-text-classification-1.html | |||
|
|||
..versionadded:: v0.14 | |||
..versionchanged:: v0.16 |
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 you want to keep these versionchanged ?
@@ -851,6 +857,8 @@ class ComplementNB(BaseDiscreteNB): | |||
Tackling the poor assumptions of naive bayes text classifiers. In ICML | |||
(Vol. 3, pp. 616-623). | |||
https://people.csail.mit.edu/jrennie/papers/icml03-nb.pdf | |||
|
|||
..versionadded:: 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.
..versionadded:: v0.20 | |
.. versionadded:: v0.20 |
Closing this PR. We put back the estimator in the pool of the main issue for the next sprint. |
Reference Issues/PRs
What does this implement/fix? Explain your changes.
Fixes part of Issue #15426
Any other comments?
Many more labels to fix