我想检查计算中的中间步骤,但我不知道该怎么做。
书中的例子:
mutate = mlr_pipeops$get("mutate")
filter = mlr_pipeops$get("filter",
filter = mlr3filters::FilterVariance$new(),
param_vals = list(filter.frac = 0.5))
graph = mutate %>>%
filter %>>%
mlr_pipeops$get("learner",
learner = mlr_learners$get("classif.rpart"))
graph$keep_results=TRUE
task = mlr_tasks$get("iris")
graph$train(task)
现在,我想看看任务的转换后的数据矩阵(在mutate
和之后filter
)。这一定是在某个地方graph
,尤其是在我设置的时候keep_results=TRUE
。但我看不到在哪里。有人能帮我一下吗?