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

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

Open
TheGhoul27 opened this issue Apr 3, 2023 · 1 comment
Open

Comments

@TheGhoul27
Copy link

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

@garar
Copy link

garar commented Jun 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants