Skip to content

[MRG + 1] DOC remove deprecated option in HashingVectorizer examples #9163

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

Merged
merged 2 commits into from
Jun 20, 2017

Conversation

rth
Copy link
Member

@rth rth commented Jun 19, 2017

Reference Issue

Fixes #9152

What does this implement/fix? Explain your changes.

As noticed by @amueller , a few examples are using the non_negative parameter of the HashingVectorizer even though it was deprecated in #7565

Using non_negative=False (default), and alternate_sign=False should produce sensibly the same results: positive and with the default hashing table size of ~1e6, the mechanism introduced by alternate_sign=True is not necessary: cf #7513 (comment) (the proposed change correponds to non_negative="total" from that comment).

Any other comments?

@jnothman
Copy link
Member

I've not checked that this is complete. Otherwise LGTM

@rth
Copy link
Member Author

rth commented Jun 20, 2017

I've not checked that this is complete. Otherwise LGTM

Thanks @jnothman ! I did do a grep -rn non_negative examples/ to find all the occurrences..

@jnothman
Copy link
Member

jnothman commented Jun 20, 2017 via email

@rth rth force-pushed the non-negative-examples branch from 02bff9e to c1dd4ef Compare June 20, 2017 12:48
@rth
Copy link
Member Author

rth commented Jun 20, 2017

@jnothman You were right. Also edited a paragraph in the docs to take into account this deprecation..

@amueller
Copy link
Member

LGTM

@amueller amueller changed the title [MRG] DOC remove deprecated option in HashingVectorizer examples [MRG + 1] DOC remove deprecated option in HashingVectorizer examples Jun 20, 2017
@jnothman jnothman merged commit b189254 into scikit-learn:master Jun 20, 2017
@jnothman
Copy link
Member

Thanks,

dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
…cikit-learn#9163)

* DOC remplace non_negative=True with alternate_sign=False in
HashingVectorizer examples

* Updated feature_extraction doc
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
…cikit-learn#9163)

* DOC remplace non_negative=True with alternate_sign=False in
HashingVectorizer examples

* Updated feature_extraction doc
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
…cikit-learn#9163)

* DOC remplace non_negative=True with alternate_sign=False in
HashingVectorizer examples

* Updated feature_extraction doc
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
…cikit-learn#9163)

* DOC remplace non_negative=True with alternate_sign=False in
HashingVectorizer examples

* Updated feature_extraction doc
AishwaryaRK pushed a commit to AishwaryaRK/scikit-learn that referenced this pull request Aug 29, 2017
…cikit-learn#9163)

* DOC remplace non_negative=True with alternate_sign=False in
HashingVectorizer examples

* Updated feature_extraction doc
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
…cikit-learn#9163)

* DOC remplace non_negative=True with alternate_sign=False in
HashingVectorizer examples

* Updated feature_extraction doc
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
…cikit-learn#9163)

* DOC remplace non_negative=True with alternate_sign=False in
HashingVectorizer examples

* Updated feature_extraction doc
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.

Examples use deprecated HasingVectorizer(non_negative=True)
3 participants