linkedin / TE2Rules

Python library to explain Tree Ensemble models (TE) like XGBoost, using a rule list.
Other
41 stars 5 forks source link

compatibility with xgboost 2.0.3 #10

Open qingyuanxingsi opened 2 months ago

qingyuanxingsi commented 2 months ago

Using xgboost 2.0.3, I found the following error: (with categorical support) model_explainer = ModelExplainer( File "/mllab/miniconda3/envs/llm-3.9/lib/python3.9/site-packages/te2rules/explainer.py", line 110, in init self.random_forest = XgboostXGBClassifierAdapter( File "/mllab/miniconda3/envs/llm-3.9/lib/python3.9/site-packages/te2rules/adapter.py", line 254, in init self.random_forest = self._convert() File "/mllab/miniconda3/envs/llm-3.9/lib/python3.9/site-packages/te2rules/adapter.py", line 290, in _convert node = self._build_tree(tree_dict) File "/mllab/miniconda3/envs/llm-3.9/lib/python3.9/site-packages/te2rules/adapter.py", line 266, in _build_tree i = int(tree_dict["split"][1:]) ValueError: invalid literal for int() with base 10

groshanlal commented 2 months ago

Can you give some more details about your use case: