8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84349a7 commit e0c60feCopy full SHA for e0c60fe
examples/plot_digits_pipe.py
@@ -36,7 +36,6 @@
36
X_digits = digits.data
37
y_digits = digits.target
38
39
-###############################################################################
40
# Plot the PCA spectrum
41
pca.fit(X_digits)
42
@@ -48,14 +47,11 @@
48
47
plt.xlabel('n_components')
49
plt.ylabel('explained_variance_')
50
51
52
# Prediction
53
-
54
n_components = [20, 40, 64]
55
Cs = np.logspace(-4, 4, 3)
56
57
-#Parameters of pipelines can be set using ‘__’ separated parameter names:
58
+# Parameters of pipelines can be set using ‘__’ separated parameter names:
59
estimator = GridSearchCV(pipe,
60
dict(pca__n_components=n_components,
61
logistic__C=Cs))
0 commit comments