-
Notifications
You must be signed in to change notification settings - Fork 12
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
Refactor type hierarchy #20
Comments
Yeah, mostly:
In other words, we currently have Probabilistic <: Supervised
Deterministic <: Supervised
Interval <: Supervised and I would propose extending this with Set <: Supervised # if you think you even need this
ProbabilisticSet <: Supervised (In the new LearnAPI.jl, we would add two target proxy types, |
Would that work for you? |
Develop - Augmented test suite to now include various different type of MLJ models. - Added minor suggestion by @ablaom (see [here](#20 (comment))) - Some doc stuff
Hi Anthony! Yes, absolutely that works. In fact, that's what I had in mind and also reflect the way things are currently implemented (I think the diagram needs some clarification perhaps). Also, good point "An abstract base type for conformal models that produce interval-valued predictions. This includes most conformal regression models."
abstract type ConformalInterval <: MMI.Interval end
"An abstract base type for conformal models that produce set-valued deterministic predictions. This includes most conformal classification models."
abstract type ConformalSet <: MMI.Supervised end # ideally we'd have MMI.Set
"An abstract base type for conformal models that produce set-valued probabilistic predictions. This includes most conformal classification models."
abstract type ConformalProbabilisticSet <: MMI.Supervised end # ideally we'd have MMI.ProbabilisticSet
"An abstract base type for conformal models that produce probabilistic predictions. This includes some conformal classifier like Venn-ABERS."
abstract type ConformalProbabilistic <: MMI.Probabilistic end For set-valued predictions, I am at this point still just subtyping I will close this issue now and open a new one related to set-valued predictions specifically. Thanks! |
Yes, this sound good. To clarify, MLJModelInterface.jl remains the home for MLJ's basement-level model interface. I just mention LearnAPI.jl because that is where I hope to move to later. So we should add two new abstract types to MLJModelInterface: |
Thanks @ablaom 👍🏽 Yes, I'll make the PR as soon as I can (have a few commitments these next two weeks, but will get to it eventually 😅) |
Now already looking at quite a few abstract types. It may be more useful to reduce the use of that and instead rely on THTT.
The text was updated successfully, but these errors were encountered: