8000 DOC removed ambiguity in pipeline gridsearch example by sjtrny · Pull Request #12272 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC removed ambiguity in pipeline gridsearch example #12272

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
Oct 4, 2018

Conversation

sjtrny
Copy link
Contributor
@sjtrny sjtrny commented Oct 4, 2018

What does this implement/fix? Explain your changes.

In the example the dimension reduction method is replaced by the values from the parameter grid. It is confusing to declare it as PCA(), only for this to be ignored. Replacing it with None indicates to the reader that this is blank or a placeholder.

Note: This confusion is not my own. It comes from my students who were confused when reading the example during a tutorial.

Copy link
Member
@jnothman jnothman left a comment

Choose a reason for hiding this comment

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

Thanks. I think this is legacy code from before None was supported. Soon this should probably be replaced with passthrough (#11674, ping @thomasjpfan)

@amueller amueller merged commit 3f5bf97 into scikit-learn:master Oct 4, 2018
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Oct 15, 2018
)

* Removed ambiguity in pipeline gridsearch example

* Formatted to pep8
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.

3 participants
0