Learn R Programming

ModelMetrics (version 1.2.2.2)

f1Score: F1 Score

Description

Calculates the f1 score

Usage

f1Score(actual, predicted, cutoff = 0.5)

Arguments

actual

A vector of the labels

predicted

A vector of predicted values

cutoff

A cutoff for the predicted values