Learn R Programming

mlr (version 2.4)

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

Description

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

Usage

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

Arguments

Value

a ggvis plot object.

See Also

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

Other thresh_vs_perf: generateThreshVsPerfData; 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