Learn R Programming

mlr (version 2.7)

plotThreshVsPerfGGVIS: Plot threshold vs. performance(s) for 2-class classification using ggvis.

Description

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

Usage

plotThreshVsPerfGGVIS(obj, interaction = "measure", mark.th = NA_real_,
  pretty.names = TRUE)

Arguments

Value

a ggvis plot object.

See Also

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

Other thresh_vs_perf: generateThreshVsPerfData, plotROCCurves, plotThreshVsPerf

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))
plotThreshVsPerfGGVIS(pvs)

Run the code above in your browser using DataLab