Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# plot the 7 most important features
plt.figure(figsize=(10,7))
feat_importances = pd.Series(model_RFR.feature_importances_, index = train_x.columns)
feat_importances.nlargest(7).plot(kind='barh');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment