Utility_Classifier | R Documentation |
Utility functions for creating diagnostic plots for binary classifiers.
compute_auc(trueClass, predProb) rocPlot(trueClass, predProb, groups = NA, colors = NA) prcPlot(trueClass, predProb, groups = NA, colors = NA) calibPlot(trueClass, predProb, groups = NA, colors = NA) cumGainPlot(trueClass, predProb, groups = NA, colors = NA) classifierDiagnosticPlots( trueClass, predProb, groups = NA, colors = NA, plotTypes = c("ROC", "PRC", "Calibration", "CumGain") )
trueClass |
A factor of true class labels. |
predProb |
A numeric vector of predicted scores etc. |
groups |
A vector indicating strata. Disable by setting NA. |
colors |
A set of colors. The length should be the same with the number of groups. |
plotTypes |
A character vector indicating which types of plots should be generated. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.