mlr_pipeops_extract_interactions | R Documentation |
PipeOperator to extract interactions gained by an rpart
model.
Abstract R6Class
inheriting from PipeOp
.
PipeOpExtractInteractions$new(id = "extract_interactions", param_vals = list())
id
:: character(1)
Identifier of resulting object, default "encode"
.
param_vals
:: named list
List of hyperparameter settings, overwriting the hyperparameter settings that would otherwise be set during construction. Default list()
.
Input and output channels are inherited from PipeOp
.
Based on the input Task
, a tree model is trained.
The output contains interactions as list()
.
The $state
is a named list
with the $state
elements inherited from PipeOp
.
The parameters are the parameters inherited from PipeOp
, as well as:
degree
:: integer(1)
Degree of interactions. Initialized to 2L
.
Only methods inherited from PipeOp
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.