put in version_added label#15973
put in version_added label#15973reshamas wants to merge 51 commits intoscikit-learn:masterfrom reshamas:adding_version
Conversation
…into adding_version
|
@reshamas , the double |
|
thanks @cmarmo. that worked! 👏 |
jnothman
left a comment
There was a problem hiding this comment.
Thanks for the work.
Several version labels are incorrect, so I cannot trust the method used to produce them.
| ------- | ||
| self : object | ||
|
|
||
| .. versionchanged:: 0.22 |
There was a problem hiding this comment.
Numpydoc won't process this correctly, since it's in the Returns section
I'm not sure whether we need such notes, but they have to appear in a Notes section or in the top description section.
There was a problem hiding this comment.
I don't think such a bug fix requires that note anyway.
| out of the raw, unprocessed input. | ||
|
|
||
| .. versionchanged:: 0.21 | ||
| .. versionadded:: 0.21 |
There was a problem hiding this comment.
analyzer was added long before version 0.21. It should not be marked as added in 0.21.
I'm not sure what this versionchanged intends to refer to, and unless its referent can be clarified, the versioning note should be removed.
There was a problem hiding this comment.
Ah... I think the versionchanged is with reference to the following content, which should be indented.
There was a problem hiding this comment.
This was marked as resolved but @jnothman's comment still holds: the analyzer param was not added in 0.21, it is much older. It was changed in 0.21 as explained in the next paragraph. The previous annotation was correct.
There was a problem hiding this comment.
I marked things as resolved as I fixed them, but I coudn't push to the repo. Created a new PR: #16015
| If a callable is passed it is used to extract the sequence of features | ||
| out of the raw, unprocessed input. | ||
|
|
||
| .. versionchanged:: 0.21 |
There was a problem hiding this comment.
the versionchanged is with reference to the following content, which should be indented.
| Introduction to Information Retrieval. Cambridge University | ||
| Press, pp. 118-120. | ||
|
|
||
| .. versionadded:: 0.19 |
There was a problem hiding this comment.
Firstly, this should not be in the References section.
Secondly, TfidfTransformer was not added as late as version 0.19. It was added in version 0.5 as far as I can tell!
How did you decide it was added in 0.19, and is it possible you could check for similar errors.
|
I'll make a second review once @jnothman are addressed. |
|
I propose closing this PR which I took over from SF sprint.
cc: @adrinjalali @cmarmo |
|
I agree. |
It is costly on the reviewing side since @jnothman already make an entire review. I agree that the PR is not ideal but I would prefer to quickly fix the comments and merge. For the next PR, we could ask to cut the PR into smaller PRs before starting the review process. |
@glemaitre, you are right, but the problem here is that @reshamas is not the original author of the PR and some of the comments are related to choices made by the first author. |
|
I'll take over and apply the requested changes for us to close this PR, that's probably easier. |
As you wish, but this is indeed a nice beginner's issue because it forces to look in the scikit-learn API. |
|
hmm, seems like maintainers can't update this PR? |
|
This PR is marked with "allow edits from maintainers". |
|
Closing this PR. We put back the estimator in the pool of the main issue for the next sprint. |
Reference Issues/PRs
Fixes part of Issue #15426
Closes #15482
What does this implement/fix? Explain your changes.
Any other comments?
Continuing work begun by @alekslovesdata at SF scikit sprint (Nov 2019)