Skip to content

Instantly share code, notes, and snippets.

@lucasastorian
Created November 27, 2021 15:00
Show Gist options
  • Select an option

  • Save lucasastorian/fd1e989277ebab53c13f8db898406d19 to your computer and use it in GitHub Desktop.

Select an option

Save lucasastorian/fd1e989277ebab53c13f8db898406d19 to your computer and use it in GitHub Desktop.
plt.figure(figsize=(10, feature_importance.shape[0] / 5))
feature_importance.sort_values('mean', ascending=True, inplace=True)
feature_importance['mean'].plot(kind='barh', color='b', alpha=0.25, xerr=feature_importance['std'], error_kw={'ecolor': 'r'}, label="Neg. Log Loss Importance")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment