Skip to content

Commit 8cdd2be

Browse files
committed
Merge pull request scikit-learn#2897 from ugurthemaster/patch-1
Update plot_forest_importances.py
2 parents 7d1ba65 + 4640608 commit 8cdd2be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ensemble/plot_forest_importances.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
print(__doc__)
1414

1515
import numpy as np
16+
import pylab as pl
1617

1718
from sklearn.datasets import make_classification
1819
from sklearn.ensemble import ExtraTreesClassifier
@@ -44,7 +45,6 @@
4445
print("%d. feature %d (%f)" % (f + 1, indices[f], importances[indices[f]]))
4546

4647
# Plot the feature importances of the forest
47-
import pylab as pl
4848
pl.figure()
4949
pl.title("Feature importances")
5050
pl.bar(range(10), importances[indices],

0 commit comments

Comments
 (0)