Useful for performance evaluations

get_prediction_counts(truth, inferred, cutoff = 0.5)

Arguments

truth

Ground truth

inferred

Computed results

cutoff

Threshold for classification

Value

data.frame

Author

Hans Wurst

Examples

get_prediction_counts(c(1,0), c(1,1))
#>   true.positive false.positive true.negative false.negative
#> 1             1              1             0              0