| tl_calc_classification_metrics | R Documentation |
Calculate classification metrics
tl_calc_classification_metrics(
actuals,
predicted,
predicted_probs = NULL,
metrics = c("accuracy", "precision", "recall", "f1", "auc"),
thresholds = NULL,
...
)
actuals |
Actual values (ground truth) |
predicted |
Predicted class values |
predicted_probs |
Predicted probabilities (for metrics like AUC) |
metrics |
Character vector of metrics to compute |
thresholds |
Optional vector of thresholds to evaluate for threshold-dependent metrics |
... |
Additional arguments |
A tibble of evaluation metrics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.