Convert object to a Learner or a list of Learner.

as_learner(x, ...)

# S3 method for Learner
as_learner(x, clone = FALSE, ...)

as_learners(x, clone = FALSE, ...)

# S3 method for list
as_learners(x, clone = FALSE, ...)

# S3 method for Learner
as_learners(x, clone = FALSE, ...)

Arguments

x

(any)
Object to convert.

...

(any)
Additional arguments.

clone

(logical(1))
If TRUE, ensures that the returned object is not the same as the input x.

Value

Learner.