F-beta Score
fbeta_score
computes a weighted harmonic mean of Precision and Recall.
The beta
parameter controls the weighting.
fbeta_score(actual, predicted, beta = 1)
actual |
The ground truth binary numeric vector containing 1 for the positive class and 0 for the negative class. |
predicted |
The predicted binary numeric vector containing 1 for the positive
class and 0 for the negative class. Each element represents the
prediction for the corresponding element in |
beta |
A non-negative real number controlling how close the F-beta score is to
either Precision or Recall. When |
actual <- c(1, 1, 1, 0, 0, 0) predicted <- c(1, 0, 1, 1, 1, 1) recall(actual, predicted)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.