Created
May 25, 2022 21:08
-
-
Save rkdgusrn1212/0d3f2c06e83860a25b5a2b8dede354b9 to your computer and use it in GitHub Desktop.
Permutation Importance
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
| import eli5 | |
| from eli5.sklearn import PermutationImportance | |
| #model 이미 train이 끝난 모델 | |
| perm = PermutationImportance(model).fit(val_X, val_y) | |
| #각 feature들의 weight를 출력 | |
| eli5.show_weights(perm, feature_names = val_X.columns.tolist()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment