importances = clf.feature_importances_
std = np.std(clf.feature_importances_, axis=0)
indices = np.argsort(importances)[::-1]
print('Feature ranking:')
for f in range(10):
    print('%d. feature %d (%f)' % (f + 1, indices[f], importances[indices[f]]))
plt.figure()
plt.title('Feature importances')
plt.bar(list(range(10)), importances[indices], color='r', yerr=std[indices],
    align='center')
plt.xticks(list(range(10)), indices)
plt.xlim([-1, 10])
plt.show()
Как изучить дерево решений, построенное с помощью scikitlearn