get_prediction_counts: Compute true positive/... counts

View source: R/utils.R

get_prediction_countsR Documentation

Compute true positive/... counts

Description

Useful for performance evaluations

Usage

get_prediction_counts(truth, inferred, cutoff = 0.5)

Arguments

truth

Ground truth

inferred

Computed results

cutoff

Threshold for classification

Value

data.frame

Author(s)

Hans Wurst

Examples

get_prediction_counts(c(1,0), c(1,1))

kpj/dce documentation built on Oct. 29, 2022, 1:40 a.m.