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 c66a14e commit 1e1bd68Copy full SHA for 1e1bd68
examples/feature_selection/plot_rfe_digits.py
@@ -16,6 +16,7 @@
16
from sklearn.svm import SVC
17
from sklearn.datasets import load_digits
18
from sklearn.feature_selection import RFE
19
+import matplotlib.pyplot as plt
20
21
# Load the digits dataset
22
digits = load_digits()
@@ -29,7 +30,6 @@
29
30
ranking = rfe.ranking_.reshape(digits.images[0].shape)
31
32
# Plot pixel ranking
-import matplotlib.pyplot as plt
33
plt.matshow(ranking)
34
plt.colorbar()
35
plt.title("Ranking of pixels with RFE")
0 commit comments