View source: R/pipeline_ordinal.R
| pipeline_ordinal | R Documentation |
Creates a graph of an ordinal regression pipeline for a regression or classification learner
pipeline_ordinal(learner)
learner |
:: |
Graph.
The resulting graph can used as GraphLearner
library(mlr3)
library(mlr3pipelines)
task = tsk("winerating")
learner = lrn("regr.rpart")
graph = ppl("ordinal", learner)
glearner = GraphLearner$new(graph, task_type = "ordinal")
resampling = rsmp("cv")
# explicitly instantiate the resampling for this task for reproduciblity
set.seed(123)
resampling$instantiate(task)
rr = resample(task, glearner, resampling)
print(rr)
# retrieve performance
rr$aggregate(msr("ordinal.ce"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.