GPBoost icon indicating copy to clipboard operation
GPBoost copied to clipboard

Multiclass classification with mixed effects

Open ML-Nielsen opened this issue 3 years ago • 1 comments

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!

ML-Nielsen avatar May 28 '22 13:05 ML-Nielsen

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.

fabsig avatar Jun 08 '22 09:06 fabsig