confusion_matrix: creates confusion matrix

View source: R/confusion_matrix.R

confusion_matrixR Documentation

creates confusion matrix

Description

creates confusion matrix

Usage

confusion_matrix(df, actual, predicted, weight_var = NULL)

Arguments

df

data.frame of numeric variables

actual

ground truth data

predicted

predicted data

weight_var

if not NULL, a vector that contains weights for each observation. The NULL case is equivalent to all cases being weighted 1.


PrenolanM/rsegmenter documentation built on Aug. 7, 2022, 8:56 p.m.