| foundry_agreement | R Documentation |
Compare model labels with human or gold-standard labels using common publication-friendly metrics: accuracy, macro precision/recall/F1, Cohen's kappa, and Krippendorff's alpha (using irr when installed, otherwise a base-R nominal implementation).
foundry_agreement(data, estimate, truth)
data |
Data frame containing estimates and truth. |
estimate |
Character. Column name with model labels. |
truth |
Character. Column name with reference labels. |
A tibble with one row per metric.
labels <- data.frame(
model = c("yes", "no", "yes"),
human = c("yes", "no", "no")
)
foundry_agreement(labels, estimate = "model", truth = "human")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.