R/utils.R
get_prediction_counts.Rd
Useful for performance evaluations
get_prediction_counts(truth, inferred, cutoff = 0.5)
Ground truth
Computed results
Threshold for classification
data.frame
Hans Wurst
get_prediction_counts(c(1,0), c(1,1)) #> true.positive false.positive true.negative false.negative #> 1 1 1 0 0