mlr_graphs_branch | R Documentation |
Create a multiplexed graph.
All input arguments are cloned and have no references in common with the returned Graph
.
pipeline_branch(graphs, prefix_branchops = "", prefix_paths = FALSE)
graphs |
|
prefix_branchops |
|
prefix_paths |
|
Graph
library("mlr3")
po_pca = po("pca")
po_nop = po("nop")
branches = pipeline_branch(list(pca = po_pca, nothing = po_nop))
# gives the same as
branches = c("pca", "nothing")
po("branch", branches) %>>%
gunion(list(po_pca, po_nop)) %>>%
po("unbranch", branches)
pipeline_branch(list(pca = po_pca, nothing = po_nop),
prefix_branchops = "br_", prefix_paths = "xy_")
# gives the same as
po("branch", branches, id = "br_branch") %>>%
gunion(list(xy_pca = po_pca, xy_nothing = po_nop)) %>>%
po("unbranch", branches, id = "br_unbranch")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.