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

Multiclass classification with mixed effects #67

Open
ML-Nielsen opened this issue May 28, 2022 · 1 comment
Open

Multiclass classification with mixed effects #67

ML-Nielsen opened this issue May 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ML-Nielsen
Copy link

Hello,

Thanks for a great library!

When I try to train a GPModel with with mixed effects (repeated measures/panel data) and pass params = {'objective' : 'multiclass', 'num_class' : 3}, I get the following error message:

GPBoostError: The GPBoost algorithm can currently not be used for objective=multiclass. If this is desired, contact the developer or open a GitHub issue.

Is multiclass classification not yet implemented, or am I doing it wrong?

Thanks a lot!

@fabsig
Copy link
Owner

fabsig commented Jun 8, 2022

The GPBoost / LaGaBoost algorithm is currently not yet implemented for categorical data with more than two categories. You might consider a "one-against-all" approach where you create K - 1 binary variables being one if the label is a certain category and zero otherwise (K = number of categories) and you train K - 1 models separately.

I will keep this issue open and add an enhancement label. However, I will probably not have time to work on this in the near future. Contributions are welcome.

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

No branches or pull requests

2 participants