Skip to contents

Draws the receiver operating characteristic of an sdt_fit() model on its held-out split. With more than two classes, one curve per class is drawn one-versus-all, which is what roc_auc's Hand-Till estimator summarises.

Usage

sdt_roc(model)

Arguments

model

An sdt_model from sdt_fit().

Value

A ggplot2 object.

Examples

# See ?sdt_fit for a runnable example.
sdt_metric_set
#> function () 
#> {
#>     .require_pkgs("yardstick")
#>     yardstick::metric_set(yardstick::roc_auc, yardstick::accuracy, 
#>         yardstick::kap, yardstick::f_meas)
#> }
#> <bytecode: 0x588cde4903d0>
#> <environment: namespace:sandtablR>