evaluation_metrics | R Documentation |
Computes a set of performance metrics (e.g., AUC, TSS, CBI) based on observed and predicted values.
evaluation_metrics(df, na.rm = TRUE, method = "spearman")
df |
A data.frame with columns: 'observed' (0/1), 'predicted' (0/1), 'probability' (numeric). |
na.rm |
Logical. Whether to remove rows with NA values. |
method |
Correlation method for CBI ("spearman", "pearson", or "kendall"). |
A named list or data.frame with evaluation metrics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.