calc_standard_classification_measures: Calculate recall, precision, and f1-scores

View source: R/performance_measures.R

calc_standard_classification_measuresR Documentation

Calculate recall, precision, and f1-scores

Description

Function for calculating recall, precision, and f1-scores.

Usage

calc_standard_classification_measures(true_values, predicted_values)

Arguments

true_values

factor containing the true labels/categories.

predicted_values

factor containing the predicted labels/categories.

Value

Returns a matrix which contains the cases categories in the rows and the measures (precision, recall, f1) in the columns.

See Also

Other performance measures: cohens_kappa(), fleiss_kappa(), get_coder_metrics(), gwet_ac(), kendalls_w(), kripp_alpha()


aifeducation documentation built on Nov. 19, 2025, 5:08 p.m.