Function to retrieve the evaluation metrics from a SIAMCAT object

eval_data(siamcat, verbose=1)

# S4 method for siamcat
eval_data(siamcat, verbose = 1)

Arguments

siamcat

(Required). A siamcat-class object that contains evaluation data

verbose

integer, if the slot is empty, should a message be printed? values can be either 0 (no output) or 1 (print message)

Value

The list of evaluation data or NULL

Details

The functions returns a list containing the evaluation metrics from a SIAMCAT object. See evaluate.predictions for more information on evaluation data.

Examples

data(siamcat_example)
temp <- eval_data(siamcat_example)
names(temp)
#>  [1] "roc"       "roc.all"   "auroc"     "auroc.all" "prc"       "prc.all"  
#>  [7] "auprc"     "auprc.all" "ev"        "ev.all"   
temp$auroc
#> Area under the curve: 0.762