R/as_learner.R
as_learner.Rd
Convert object to a Learner or a list of Learner.
as_learner(x, ...) # S3 method for class 'Learner' as_learner(x, clone = FALSE, discard_state = FALSE, ...) as_learners(x, ...) # Default S3 method as_learners(x, ...) # S3 method for class 'list' as_learners(x, ...)
(any) Object to convert.
(any) Additional arguments.
(logical(1)) If TRUE, ensures that the returned object is not the same as the input x.
logical(1)
TRUE
x
(logical(1)) Whether to discard the state.
Learner.