SimpleROC: SimpleROC function

Description Usage Arguments Examples

Description

This function builds a ROC for a classifier it returns a data frame with TPR and FPR from which to plot the ROC

Usage

1
SimpleROC(labels, scores)

Arguments

labels

ground truth boolean vector

scores

numeric vector with probability of a given classification according to the classifier

Examples

1
SimpleROC(sample(c(T,F), 1000, replace = T), runif(1000)) #should return an identity line ROC

m-a-r-i-o/aRtistic documentation built on May 7, 2019, 9:37 a.m.