mlr3pipelines (version 0.3.1)

ppl: Shorthand Graph Constructor

Description

Creates a Graph from mlr_graphs from given ID

Usage

ppl(key, ...)

Arguments

key

[character(1)] The key of the Graph in mlr_graphs.

...

any Additional parameters to give to constructed object. This may be an argument of the constructor of the underlying function.

Value

Graph

Examples

Run this code
# NOT RUN {
library("mlr3")

gr = ppl("bagging", graph = po(lrn("regr.rpart")),
  averager = po("regravg", collect_multiplicity = TRUE))
# }

Run the code above in your browser using DataCamp Workspace