I would like to check intermediate steps in a calculation, but I could not figure out how to do this.
Example from the book:
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)
Now, I would like to see the transformed data matrix of the task (after mutate
and filter
). This must be somewhere in graph
, especially as I did set keep_results=TRUE
. But I cannot see where. Can anyone help me here?