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 models #36

Open
AndreaPesce opened this issue Apr 22, 2021 · 4 comments
Open

Multiclass models #36

AndreaPesce opened this issue Apr 22, 2021 · 4 comments

Comments

@AndreaPesce
Copy link

The algorithm doesn't support multiclass classification.
In infer_model function the classification task is defined only for two unique values of the target.

@aerdem4
Copy link
Owner

aerdem4 commented Apr 22, 2021

Hi @AndreaPesce , thanks for your interest in this package. Default model has only simple checks and try to infer the most common use cases. You can provide your multi-class model object (without training) and use LOFO. If you are aware of it and still want to have multi-class in default model, please let me know.

@AndreaPesce
Copy link
Author

Hi @aerdem4, thanks for the answer. I'll define the model to be a Classifier.

I think that if I define a classification metric as scoring param, then the model can be for multiclass or binary classification, so the model has to be a classifier. The choice should not depends on the number of unique value, but on the scoring metric.

If there's no need for you to add this option, then I'll close the issue.
Thank you again!

@aerdem4
Copy link
Owner

aerdem4 commented Apr 22, 2021

If the choice depends on the metric, then I have to keep a static list of all metrics, which will need to be updated every time sklearn is updated. Besides LOFO allows you to have your own metric, then it won't be possible to guess for these custom metrics. I also want the default model to understand if it is a multi-class problem but I am looking for the most convenient solution.

@ybdesire
Copy link

the same as #40

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

No branches or pull requests

3 participants