Skip to content

Commit 1e1bd68

Browse files
ugurthemasterjnothman
authored andcommitted
COSMIT Move imports in example
1 parent c66a14e commit 1e1bd68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/feature_selection/plot_rfe_digits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from sklearn.svm import SVC
1717
from sklearn.datasets import load_digits
1818
from sklearn.feature_selection import RFE
19+
import matplotlib.pyplot as plt
1920

2021
# Load the digits dataset
2122
digits = load_digits()
@@ -29,7 +30,6 @@
2930
ranking = rfe.ranking_.reshape(digits.images[0].shape)
3031

3132
# Plot pixel ranking
32-
import matplotlib.pyplot as plt
3333
plt.matshow(ranking)
3434
plt.colorbar()
3535
plt.title("Ranking of pixels with RFE")

0 commit comments

Comments
 (0)