Created
March 15, 2021 09:57
-
-
Save PranjalDureja0002/88943b6fa92cbf15159479fe954394c0 to your computer and use it in GitHub Desktop.
model
This file contains hidden or 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
feature_important = xg1.get_booster().get_score(importance_type='weight') | |
keys = list(feature_important.keys()) | |
values = list(feature_important.values()) | |
data = pd.DataFrame(data=values, index=keys, columns=["score"]).sort_values(by = "score", ascending=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment