fscore: Calculates the F1-Score for a pair set of true and predicted...

Description Usage Arguments Value

View source: R/Utils.R

Description

Calculates the F1-Score for a pair set of true and predicted values

Usage

1
fscore(y_true, y_pred, positive = NULL)

Arguments

y_true

Vector of size n with true values

y_pred

Vector of size n with predicted values

positive

String with the name of the positive class. If none is attributed it will select the least frequent class. Note: the distribution of classes in the population and the sample may be significantly different.

Value

F-Score value


nunompmoniz/autoresampling documentation built on April 26, 2021, 4:43 a.m.