Skip to content

Commit

Permalink
Update of Lime, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
zyliang2001 committed Jan 14, 2024
1 parent 9364e74 commit 850dd2e
Show file tree
Hide file tree
Showing 4 changed files with 855 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from sklearn.ensemble import RandomForestRegressor
from feature_importance.util import ModelConfig, FIModelConfig
from feature_importance.scripts.competing_methods_local import tree_shap_local, permutation_local

from feature_importance.scripts.competing_methods_local import tree_shap_local, permutation_local, lime_local, MDI_local_all_stumps, MDI_local_sub_stumps
# N_ESTIMATORS=[50, 100, 500, 1000]
ESTIMATORS = [
[ModelConfig('RF', RandomForestRegressor, model_type='tree',
Expand All @@ -13,4 +12,6 @@
FI_ESTIMATORS = [
[FIModelConfig('TreeSHAP', tree_shap_local, model_type='tree')],
[FIModelConfig('Permutation', permutation_local, model_type='tree')],
[FIModelConfig('LIME', lime_local, model_type='tree')],
[FIModelConfig('MDI_all_stumps', MDI_local_all_stumps, model_type='tree')],
]
Loading

0 comments on commit 850dd2e

Please sign in to comment.