Skip to content

Commit aed3ddd

Browse files
committed
Merge pull request scikit-learn#2780 from ugurthemaster/patch-1
Update plot_digits_pipe.py
2 parents 080887e + 8b7175c commit aed3ddd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/plot_digits_pipe.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@
2424
import pylab as pl
2525

2626
from sklearn import linear_model, decomposition, datasets
27+
from sklearn.pipeline import Pipeline
28+
from sklearn.grid_search import GridSearchCV
2729

2830
logistic = linear_model.LogisticRegression()
2931

3032
pca = decomposition.PCA()
31-
from sklearn.pipeline import Pipeline
3233
pipe = Pipeline(steps=[('pca', pca), ('logistic', logistic)])
3334

3435
digits = datasets.load_digits()
@@ -50,8 +51,6 @@
5051
###############################################################################
5152
# Prediction
5253

53-
from sklearn.grid_search import GridSearchCV
54-
5554
n_components = [20, 40, 64]
5655
Cs = np.logspace(-4, 4, 3)
5756

0 commit comments

Comments
 (0)