fScore {ModelMetrics} | R Documentation |
Calculates the F score and allows different specifications of the beta value (F0.5)
fScore(actual, predicted, cutoff = 0.5, beta = 1)
actual |
A vector of the labels |
predicted |
A vector of predicted values |
cutoff |
A cutoff for the predicted values |
beta |
the desired beta value (lower increases weight of precision over recall). Defaults to 1 |