Skip to content

compatibility with xgboost 2.0.3 #10

Description

@qingyuanxingsi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions