Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ogyalcin
Created June 24, 2021 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogyalcin/33bddbb89a2ea3650f199555fecba3ed to your computer and use it in GitHub Desktop.
Save ogyalcin/33bddbb89a2ea3650f199555fecba3ed to your computer and use it in GitHub Desktop.
# Plot the feature importances
feat_importances = pd.Series(rf.feature_importances_, index=X.columns)
feat_importances = feat_importances.sort_values(ascending=False)
px.bar(y=feat_importances, x=feat_importances.index, template='ggplot2', width=800)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment