-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Support for ordinal multi-classification #23324
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
Comments
How does it compare with NOCATS such as started in this pull request: #12866 |
From my understanding of NOCATS, the differences are:
|
I completely missed that it was referring to encoding the target and not the data. So this is not related to NOCATS. |
So this is something that could be adequate for the |
Hello this article by Christopher Coffee might help deal with the problem mentioned above |
Ok. But I don’t think that’s a big problem. We can just normalize the probability, no? Also. here is some other related work: |
I've checked the link that you share, I think it has a better implementation than the one that I provide in the medium post |
Is there still interest in including this feature? |
Figured I'd mention it, @FBruzzesi made an implementation of a OrdinalClassifier that's a meta estimator in scikit-lego. Somewhat experimental feature (most of the library is that) but could also be relevant to folks reading this. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the workflow you want to enable
Encode response variable ordering with every scikit learn classifier according to the method introduced in this frequently cited paper.
Describe your proposed solution
Implement
OrdinalClassifier
, a classifier that takes another scikit learn classifier as input and encodes the ordinality assumption into the classifier. It's quite simple, and there are also blog posts on it, for example by @m46f here. Here's a slightly more advanced version that can also handle arbitrary labels that I'd be willing to contribute as a PR: https://gist.github.com/lorenzwalthert/51371894225c7b530b66bdabfad60327A lot of classification problems are inherently ordinal in nature and this trick has proven to work well in various settings, the code is very little to add to the project, adds zero dependencies and is a much cited approach (600+).
Describe alternatives you've considered, if relevant
Using that code outside of scikit learn, but I think ti's generally useful to others.
Additional context
No response
The text was updated successfully, but these errors were encountered: