Description Usage Arguments Value Examples
Plotting a ROC curve based on ggplots.
1 |
labels |
A vector, matrix, list, or data frame containing the true class labels. Must have the same dimensions as 'predictions |
probality |
A vector, matrix, list, or data frame containing the predictions |
A ROC curve.
1 2 3 4 5 6 7 | ##Loading example data
load(system.file("data","example_svm.Rdata",package = "AStrap"))
proba <- as.data.frame(attr(example_svm$svmPre, "probabilities"))
testset <- example_svm$testSet
label <- testset$class
library(ggplot2)
plotROC(proba,label)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.