Created
April 26, 2020 15:19
-
-
Save Davisy/3b8f8afafb2f567e37b00e5997e782a1 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
xgb_classifier = XGBClassifier(n_jobs=-1) | |
# train | |
xgb_classifier.fit(X_train, y_train) | |
# Generates a plot of a classifier's feature importances | |
skplt.estimators.plot_feature_importances( | |
xgb_classifier, | |
feature_names=feature_columns, | |
figsize=(10, 8), | |
title="Feature Importance for XGB Classifier", | |
x_tick_rotation=90, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment