Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatibility with xgboost 2.0.3 #10

Open
qingyuanxingsi opened this issue Jul 25, 2024 · 1 comment
Open

compatibility with xgboost 2.0.3 #10

qingyuanxingsi opened this issue Jul 25, 2024 · 1 comment

Comments

@qingyuanxingsi
Copy link

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
Copy link
Collaborator

Can you give some more details about your use case:

  • Is your XGBoost model trained for Binary Classification?
  • Does the notebook in the README work for you with your version of XGBoost?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants