get_roc_curve_data: Extract the underlying data from an ROC curve

View source: R/iaibase.R

get_roc_curve_dataR Documentation

Extract the underlying data from an ROC curve

Description

ROC curves are returned by roc_curve, e.g. roc_curve.classification_learner

Usage

get_roc_curve_data(curve)

Arguments

curve

The curve to query.

Details

The data is returned as a list with two keys: auc giving the area-under-the-curve, and coords containing a vector of lists representing each point on the curve, each with keys fpr (the false positive rate), tpr (the true positive rate) and threshold (the threshold).

Julia Equivalent: IAI.get_roc_curve_data

IAI Compatibility

Requires IAI version 2.1 or higher.

Examples

## Not run: iai::get_roc_curve_data(curve)


iai documentation built on July 9, 2023, 5:41 p.m.