Learn R Programming

LCCkNN (version 0.1.0)

f1_score: Computes the F1-score.

Description

Computes the F1-score.

Usage

f1_score(true_labels, predicted_labels, average = "weighted")

Value

The F1-score.

Arguments

true_labels

The true class labels.

predicted_labels

The predicted class labels.

average

The type of averaging ('weighted').