-
-
Save amankharwal/f15ad77a80d20cb2e9cad8075f91474e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sns.set_context("talk") | |
style.use('fivethirtyeight') | |
fi = pd.DataFrame() | |
fi['features'] = X.columns.values.tolist() | |
fi['importance'] = lgbm_tuned.booster_.feature_importance(importance_type='gain') | |
sns.barplot(x='importance', y='features', data=fi.sort_values(by='importance', ascending=True)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment