| set_validate.GraphLearner | R Documentation |
Configure validation for a graph learner.
In a GraphLearner, validation can be configured on two levels:
On the GraphLearner level, which specifies how the validation set is constructed before entering the graph.
On the level of the individual PipeOps (such as PipeOpLearner), which specifies
which pipeops actually make use of the validation data (set its $validate field to "predefined") or not (set it to NULL).
This can be specified via the argument ids.
## S3 method for class 'GraphLearner'
set_validate(
learner,
validate,
ids = NULL,
args_all = list(),
args = list(),
...
)
learner |
( |
validate |
( |
ids |
( |
args_all |
( |
args |
(named |
... |
(any) |
library(mlr3)
glrn = as_learner(po("pca") %>>% lrn("classif.debug"))
set_validate(glrn, 0.3)
glrn$validate
glrn$graph$pipeops$classif.debug$learner$validate
set_validate(glrn, NULL)
glrn$validate
glrn$graph$pipeops$classif.debug$learner$validate
set_validate(glrn, 0.2, ids = "classif.debug")
glrn$validate
glrn$graph$pipeops$classif.debug$learner$validate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.