gplearn icon indicating copy to clipboard operation
gplearn copied to clipboard

SymbolicClassifier doesn't classify tasks with more than 2 classes.

Open TheGhoul27 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

I would like to request for a polyclass classifier using SymbolicClassifier. Currently the classifier is only able to classify 2 classes.

Describe the solution you'd like

It would be useful if the polyclass classifier was implemented. As most of the current ML models require us to classify multi class or classes over 2. Current version limits us to use GPLearn for 2 class classification.

Additional context

TheGhoul27 avatar Apr 03 '23 19:04 TheGhoul27

Hi @TheGhoul27 !

Can you use: OneVsRestClassifier, OneVsOneClassifier or MultiOutputClassifier from sklearn as a workaround?

https://scikit-learn.org/stable/modules/generated/sklearn.multiclass.OneVsRestClassifier.html https://scikit-learn.org/stable/modules/generated/sklearn.multiclass.OneVsOneClassifier.html https://scikit-learn.org/stable/modules/generated/sklearn.multioutput.MultiOutputClassifier.html

They can convert binary classifier to handle multiple classes.

garar avatar Jun 29 '23 08:06 garar