| po | R Documentation |
Create
a PipeOp from mlr_pipeops from given ID
a PipeOpLearner from a Learner object
a PipeOpFilter from a Filter object
a PipeOpSelect from a Selector object
a clone of a PipeOp from a given PipeOp (possibly with changed settings)
The object is initialized with given parameters and param_vals.
po() taks a single obj (PipeOp id, Learner, ...) and converts
it to a PipeOp. pos() (with plural-s) takes either a character-vector, or a
list of objects, and creates a list of PipeOps.
po(.obj, ...)
pos(.objs, ...)
.obj |
|
... |
|
.objs |
|
A PipeOp (for po()), or a list of PipeOps (for pos()).
library("mlr3")
po("learner", lrn("classif.rpart"), cp = 0.3)
po(lrn("classif.rpart"), cp = 0.3)
# is equivalent with:
mlr_pipeops$get("learner", lrn("classif.rpart"),
param_vals = list(cp = 0.3))
mlr3pipelines::pos(c("pca", original = "nop"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.