8000 DOC removed ambiguity in pipeline gridsearch example (#12272) · scikit-learn/scikit-learn@3f5bf97 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f5bf97

Browse files
sjtrnyamueller
authored andcommitted
DOC removed ambiguity in pipeline gridsearch example (#12272)
* Removed ambiguity in pipeline gridsearch example * Formatted to pep8
1 parent b725921 commit 3f5bf97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/compose/plot_compare_reduction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
print(__doc__)
4444

4545
pipe = Pipeline([
46-
('reduce_dim', PCA()),
46+
# the reduce_dim stage is populated by the param_grid
47+
('reduce_dim', None),
4748
('classify', LinearSVC())
4849
])
4950

0 commit comments

Comments
 (0)
0