rocr_ens: Receiver Operator Characteristic Curve calculations

View source: R/rocr_ens.R

rocr_ensR Documentation

Receiver Operator Characteristic Curve calculations

Description

A function to calculate various ROC curve performance metrics given model predictions and the oberved samples

Usage

rocr_ens(predictions, samples)

Arguments

predictions

Random Forest predictions (or any probability)

samples

The original observations (must be a factor)

Value

A list containing all the various ROC curve performance metrics

Examples

predictions <- rbeta(100, 4, 4)
samples <- rbinom(100, 1, 0.5)
rocr <- rocr_ens(predictions, samples)
rocr$auc
str(rocr)



zsiders/EnsembleRandomForests documentation built on Oct. 8, 2024, 11:41 p.m.