| plotThreshVsPerf {mlr} | R Documentation |
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,
measures = obj$measures,
facet = "measure",
mark.th = NA_real_,
pretty.names = TRUE,
facet.wrap.nrow = NULL,
facet.wrap.ncol = NULL
)
Arguments
obj |
(ThreshVsPerfData) |
measures |
(Measure | list of Measure) |
facet |
( |
mark.th |
( |
pretty.names |
( |
facet.wrap.nrow, facet.wrap.ncol |
(integer) |
Value
ggplot2 plot object.
See Also
Other plot:
createSpatialResamplingPlots(),
plotBMRBoxplots(),
plotBMRRanksAsBarChart(),
plotBMRSummary(),
plotCalibration(),
plotCritDifferences(),
plotLearningCurve(),
plotPartialDependence(),
plotROCCurves(),
plotResiduals()
Other thresh_vs_perf:
generateThreshVsPerfData(),
plotROCCurves()
Examples
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)