Skip to content

Instantly share code, notes, and snippets.

@crawles
Created March 5, 2019 02:21
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 crawles/8b4c114641071a6087eb32126679969c to your computer and use it in GitHub Desktop.
Save crawles/8b4c114641071a6087eb32126679969c to your computer and use it in GitHub Desktop.
# Get importances
importances = est.experimental_feature_importances(normalize=True)
df_imp = pd.Series(importances)
# Visualize importances.
N = 8
ax = (df_imp.iloc[0:N][::-1]
.plot(kind='barh'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment