Learn R Programming

mlr (version 2.7)

plotThreshVsPerf: Plot threshold vs. performance(s) for 2-class classification using ggplot2.

Description

Plots threshold vs. performance(s) data that has been generated with generateThreshVsPerfData.

Usage

plotThreshVsPerf(obj, facet = "measure", mark.th = NA_real_,
  pretty.names = TRUE)

Arguments

Value

ggplot2 plot object.

See Also

Other plot: plotBMRBoxplots, plotBMRRanksAsBarChart, plotBMRSummary, plotCalibration, plotCritDifferences, plotFilterValuesGGVIS, plotFilterValues, plotLearningCurveGGVIS, plotLearningCurve, plotPartialPredictionGGVIS, plotPartialPrediction, plotROCCurves, plotROCRCurvesGGVIS, plotROCRCurves, plotThreshVsPerfGGVIS

Other thresh_vs_perf: generateThreshVsPerfData, plotROCCurves, plotThreshVsPerfGGVIS

Examples

Run this code
lrn = makeLearner("classif.rpart", predict.type = "prob")
mod = train(lrn, sonar.task)
pred = predict(mod, sonar.task)
pvs = generateThreshVsPerfData(pred, list(acc, setAggregation(acc, train.mean)))
plotThreshVsPerf(pvs)

Run the code above in your browser using DataLab