8000 FIX sphinx gallery rendering of plot_digits_pipe example · Pthinker/scikit-learn@e0c60fe · GitHub
[go: up one dir, main page]

Skip to content

Commit e0c60fe

Browse files
committed
FIX sphinx gallery rendering of plot_digits_pipe example
1 parent 84349a7 commit e0c60fe

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/plot_digits_pipe.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
X_digits = digits.data
3737
y_digits = digits.target
3838

39-
###############################################################################
4039
# Plot the PCA spectrum
4140
pca.fit(X_digits)
4241

@@ -48,14 +47,11 @@
4847
plt.xlabel('n_components')
4948
plt.ylabel('explained_variance_')
5049

51-
###############################################################################
5250
# Prediction
53-
5451
n_components = [20, 40, 64]
5552
Cs = np.logspace(-4, 4, 3)
5653

57-
#Parameters of pipelines can be set using ‘__’ separated parameter names:
58-
54+
# Parameters of pipelines can be set using ‘__’ separated parameter names:
5955
estimator = GridSearchCV(pipe,
6056
dict(pca__n_components=n_components,
6157
logistic__C=Cs))

0 commit comments

Comments
 (0)
0