default_fallback: Create a Fallback Learner

View source: R/default_fallback.R

default_fallbackR Documentation

Create a Fallback Learner

Description

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.

Usage

default_fallback(learner, ...)

## S3 method for class 'Learner'
default_fallback(learner, ...)

## S3 method for class 'LearnerClassif'
default_fallback(learner, ...)

## S3 method for class 'LearnerRegr'
default_fallback(learner, ...)

Arguments

learner

Learner
The learner for which a fallback learner should be created.

...

any
ignored.

Value

Learner


mlr3 documentation built on Oct. 18, 2024, 5:11 p.m.