-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
predict_types should be an active binding #851
Comments
Grepping a bit:
I'd conclude that for the few cases where |
I guess to move forward here we would need the opinion of @berndbischl and @mllg? |
the reason why this was implementred are somewhat historic. more importantly: this would now REALLY change very CENTRAL API. so I am very hesitant to do that. what you write about read only AB seems fine to me |
Solved in #1233 |
Since I am stumbling over this for the nth time:
predict_type
andpredict_types
are easy to confuse (and it happens to me quite a lot).predict_type
: The concrete type of the prediction the learner should yieldpredict_types
: The theoretical capabilities of the learner: Which types of prediction can it yield.I think for less involved users, this might be an even bigger problem.
Solution:
predict_types
should IMHO be immutable (this is a property of the learner).-> Encode as an AB and if the user tries to set it point her/him to
predict_type
in the error messageMore generally: Do we need
predict_type
?predict_type
is mutable after training so we can break learners if they were to use itpredict_types
after training forBenchmarkResults
this is not possible, anymore due to the use of read-only AB's.could
just be an extra arg added to$predict
instead.Sidenote Default
It's super annoying (and IMHO unncessary) to set
predict_type = "prob"
.I always remember that when I try to use probabilistic measures AFTER having trained the model.
And in 99.9% of cases it does not matter what predict type was set for the inducer and I could change it post-hoc (which afaik works as long as the learner is not e.g. in a resample result where things are way more difficult).
Question: Should we not by default predict
prob
IF the learner can do it? Do we have any learners that can not predict prob?The text was updated successfully, but these errors were encountered: