Skip to contents

This function takes a data frame with binary truth values and predicted scores, computes the ROC curve, and returns a data frame containing specificity, sensitivity, and threshold values. This function is inspired by the yardstick package.

Usage

compute_roc_curve(dt)

Arguments

dt

A data frame with columns truth (first column) and score (second column).

Value

A data frame with specificity, sensitivity, and threshold values.