aeon-toolkit / aeon

A toolkit for machine learning from time series
https://aeon-toolkit.org/
BSD 3-Clause "New" or "Revised" License
1.01k stars 121 forks source link

[ENH] Tag for capability to making probabilistic predictions for classification #1599

Open TonyBagnall opened 5 months ago

TonyBagnall commented 5 months ago

Describe the feature or idea you want to propose

as requested here https://github.com/aeon-toolkit/aeon/issues/1587 it would be nice to have a way of testing if classifiers (and maybe clusterers) can return meaningful probability estimates rather than default 0/1/

Describe your proposed solution

add a tag, maybe capability:predict_probas?

Describe alternatives you've considered, if relevant

No response

Additional context

No response

SebastianSchmidl commented 5 months ago

Should predict_proba actually return 0/1 if it is not supported? To make sure that the user notices that the classifier does not compute probabilities, we should at least raise a warning - I would even raise an error.


I'm in favor of introducing a new tag for the tests, anyway. I would name it like the method capability:predict_proba

hadifawaz1999 commented 5 months ago

Should predict_proba actually return 0/1 if it is not supported? To make sure that the user notices that the classifier does not compute probabilities, we should at least raise a warning - I would even raise an error.

I'm in favor of introducing a new tag for the tests, anyway. I would name it like the method capability:predict_proba

i think its cases such as 1-NN no @TonyBagnall ?

TonyBagnall commented 1 month ago

generally agreed this is a good idea, as long as its tested, but some confusion about how to handle polymorphic classifiers in pipelines