Description Usage Arguments Value See Also Examples
View source: R/generateThreshVsPerf.R
Plots a ROC curve from predictions.
1 2 | plotROCCurves(obj, measures, diagonal = TRUE, pretty.names = TRUE,
facet.learner = FALSE)
|
obj |
[ |
measures |
[ |
diagonal |
[ |
pretty.names |
[ |
facet.learner |
[ |
ggplot2 plot object.
Other plot: plotBMRBoxplots
,
plotBMRRanksAsBarChart
,
plotBMRSummary
,
plotCalibration
,
plotCritDifferences
,
plotFilterValuesGGVIS
,
plotLearningCurveGGVIS
,
plotLearningCurve
,
plotPartialDependenceGGVIS
,
plotPartialDependence
,
plotResiduals
,
plotThreshVsPerfGGVIS
,
plotThreshVsPerf
Other thresh_vs_perf: generateThreshVsPerfData
,
plotThreshVsPerfGGVIS
,
plotThreshVsPerf
1 2 3 4 5 6 7 8 9 10 11 12 13 | lrn = makeLearner("classif.rpart", predict.type = "prob")
fit = train(lrn, sonar.task)
pred = predict(fit, task = sonar.task)
roc = generateThreshVsPerfData(pred, list(fpr, tpr))
plotROCCurves(roc)
r = bootstrapB632plus(lrn, sonar.task, iters = 3)
roc_r = generateThreshVsPerfData(r, list(fpr, tpr), aggregate = FALSE)
plotROCCurves(roc_r)
r2 = crossval(lrn, sonar.task, iters = 3)
roc_l = generateThreshVsPerfData(list(boot = r, cv = r2), list(fpr, tpr), aggregate = FALSE)
plotROCCurves(roc_l)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.