Skip to content
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

MRG renamed min_n and max_n parameters in CountVectorizer #1024

Merged
merged 4 commits into from Aug 19, 2012

Conversation

amueller
Copy link
Member

To make grid-searching them together possible.
cc @agramfort and @ogrisel

@agramfort
Copy link
Member

+1 for merge

@amueller
Copy link
Member Author

Thanks for the review @agramfort :). @ogrisel as you are our NLP expert and probably know the most about this module, I'd love to have your vote, too, if you find the time.

@mblondel
Copy link
Member

Looks good to me too except that I find bound_n not terribly explicit. Maybe something like ngram_range?

@amueller
Copy link
Member Author

Yeah, ngram_range sounds better. Anyone opposed?

@vene
Copy link
Member

vene commented Aug 15, 2012

+1 for ngram_range. n_range would be more semantically correct but less clear imo.

@amueller
Copy link
Member Author

Done. Thanks for the feedback.

@amueller
Copy link
Member Author

@ogrisel If you think this is ok, feel free to press the green button ;)

@@ -77,6 +77,10 @@ API changes summary
necessary for early-stopping in which case the tree is not
completely built.

- In :class:`feature_extraction.text.CountVectorizer` the parameters
``min_n`` and ``max_n`` were joined to the parameter ``bounds_n`` to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/bounds_n/ngram_range/

@ogrisel
Copy link
Member

ogrisel commented Aug 18, 2012

+1 for merging once the too previous comments have been addressed. +1 for explicit parameter names in general :)

@amueller amueller merged commit 4156481 into scikit-learn:master Aug 19, 2012
@amueller
Copy link
Member Author

merged by rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants