8000 Removed ambiguity in pipeline gridsearch example · sjtrny/scikit-learn@0f5293a · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f5293a

Browse files
committed
Removed ambiguity in pipeline gridsearch example
1 parent bfab306 commit 0f5293a

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