Learn R Programming

performanceEstimation (version 1.1.0)

taskNames: The prediction tasks involved in an estimation experiment

Description

This function can be used to get a vector with the IDs of the prediction tasks that were used in a performance estimation experiment.

Usage

taskNames(o)

Arguments

o
An object of class ComparisonResults

Value

A vector of strings (the names of the tasks)

References

Torgo, L. (2014) An Infra-Structure for Performance Estimation and Experimental Comparison of Predictive Models in R. arXiv:1412.0436 [cs.MS] http://arxiv.org/abs/1412.0436

See Also

ComparisonResults, performanceEstimation, metricNames, workflowNames

Examples

Run this code
## Not run: 
# ## Estimating MSE for 3 variants of both
# ## regression trees and SVMs, on  two data sets, using one repetition
# ## of 10-fold CV
# library(e1071)
# library(DMwR)
# data(swiss)
# data(mtcars)
# 
# ## running the estimation experiment
# res <- performanceEstimation(
#   c(PredTask(Infant.Mortality ~ .,swiss),PredTask(mpg ~ ., mtcars)),
#   c(workflowVariants(learner="svm",
#                      learner.pars=list(cost=c(1,10),gamma=c(0.01,0.5))),
#     workflowVariants(learner="rpartXse",
#                      learner.pars=list(se=c(0,0.5,1)))
#   ),
#   EstimationTask("mse")
#   )
# 
# ## the names of the metrics that were estimated in the above experiment
# taskNames(res)
# ## End(Not run)

Run the code above in your browser using DataLab