Create a fallback learner for a given learner. The function searches for a suitable fallback learner based on the task type. Additional checks are performed to ensure that the fallback learner supports the predict type.
default_fallback(learner, ...)# S3 method for Learner
default_fallback(learner, ...)
# S3 method for LearnerClassif
default_fallback(learner, ...)
# S3 method for LearnerRegr
default_fallback(learner, ...)
Learner
Learner
The learner for which a fallback learner should be created.
any
ignored.