mlr-org / mlr3

mlr3: Machine Learning in R - next generation
https://mlr3.mlr-org.com
GNU Lesser General Public License v3.0
948 stars 85 forks source link

have a nice function to create a default fallback -- and warn if it doesnt have enough properties #1150

Closed berndbischl closed 2 months ago

berndbischl commented 2 months ago

marc added some code in encapsulate to preconfigure a fallback.

maybe that should simply be a helper. so it can be called from the outside.

i also think: on setting the fallback you PROBABLY wanna warn the user if you fallback can do "less", e.g. doesn't have the same predict_type (error?) or can do no weights....

we don't have to be SUPER precise here or "block" actions. but at least warn about obvious problems?

sebffischer commented 2 months ago

this should maybe take into account that graphlearners have all available properties (it junk this is a workaround because inferring these properties is kind of tricky)

be-marc commented 2 months ago

1151