Learn R Programming

mlr (version 2.7)

generateLearningCurveData: Generates a learning curve

Description

Observe how the performance changes with an increasing number of observations.

Usage

generateLearningCurveData(learners, task, resampling = NULL,
  percs = seq(0.1, 1, by = 0.1), measures, stratify = FALSE,
  show.info = getMlrOption("show.info"))

Arguments

Value

An object of class LearningCurveData.

See Also

Other generate_plot_data: generateCalibrationData, generateCritDifferencesData, generateFilterValuesData, generatePartialPredictionData, generateROCRCurvesData, generateThreshVsPerfData, getFilterValues

Other learning_curve: plotLearningCurveGGVIS, plotLearningCurve

Examples

Run this code
r = generateLearningCurveData(list("classif.rpart", "classif.knn"),
task = sonar.task, percs = seq(0.2, 1, by = 0.2),
measures = list(tp, fp, tn, fn), resampling = makeResampleDesc(method = "Subsample", iters = 5),
show.info = FALSE)
plotLearningCurve(r)

Run the code above in your browser using DataLab