f1_score {autoMrP} | R Documentation |
Estimates the inverse f1 score, i.e. 0 is the best score and 1 the worst.
Description
f1_score()
estimates the inverse f1 scores on the individual and state
levels.
Usage
f1_score(pred, data.valid, y, L2.unit)
Arguments
pred |
Predictions of outcome. A numeric vector of outcome predictions. |
data.valid |
Test data set. A tibble of data that was not used for prediction. |
y |
Outcome variable. A character vector containing the column names of the outcome variable. |
L2.unit |
Geographic unit. A character scalar containing the column name
of the geographic unit in |
Value
Returns a tibble containing two f1 prediction errors. The first is measured at the level of individuals and the second is measured at the context level. The tibble dimensions are 2x3 with variables: measure, value and level.
[Package autoMrP version 1.0.6 Index]