Learn R Programming

mlr (version 2.4)

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

Description

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

Usage

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

Arguments

Value

ggplot2 plot object.

See Also

Other plot: plotFilterValuesGGVIS; plotFilterValues; plotLearningCurveGGVIS; plotLearningCurve; plotROCRCurvesGGVIS; plotROCRCurves; plotThreshVsPerfGGVIS

Other thresh_vs_perf: generateThreshVsPerfData; 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(tpr, fpr))
plotThreshVsPerf(pvs)

Run the code above in your browser using DataLab