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

Is library supporting scikit-learn API such as XGBoost or LightGBM compatible to HSTreeClassifier/Regressor? #171

Closed
HyukdongKim opened this issue Apr 21, 2023 · 0 comments · Fixed by #178

Comments

@HyukdongKim
Copy link

HyukdongKim commented Apr 21, 2023

First, thank you for creating such an awesome library.

I tried to apply HSTreeClassifier(&Regressor) to the XGBoost library and it does not change anything to prediction.

Of course, I saw in the support-for-different-tasks in readme.md that it says 'Wraps any sklearn tree-based model'.

Is that means only compatible to scikit-learn's model or other possibilities?

Test env followings:

From sklearns example, I just changed

classifiers = [
    DecisionTreeClassifier(max_depth=5),
    RandomForestClassifier(max_depth=5, n_estimators=10, max_features=1),
    AdaBoostClassifier(),
    XGBClassifier(),
]

to

classifiers = [
    HSTreeClassifier(DecisionTreeClassifier(max_depth=5)),
    HSTreeClassifier(RandomForestClassifier(max_depth=5, n_estimators=10, max_features=1)),
    HSTreeClassifier(AdaBoostClassifier()),
    HSTreeClassifier(XGBClassifier()),
]

And I noticed HSTreeClassifier works to DecisionTreeClassifier, RandomForestClassifier and AdaBoostClassifier. But not to XGBClassifier.

Base template
image

with HSTreeClassifier
image

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

Successfully merging a pull request may close this issue.

1 participant