calculateConfusionMatrixStats: Calculates multiple confusion matrix stats from mariginal...

View source: R/tidyBinaryInfoStats.R

calculateConfusionMatrixStatsR Documentation

Calculates multiple confusion matrix stats from mariginal probabilities in dplyr friendly manner

Description

The purpose of this is to make it possible to calculate accuracy stats in a DPLYR table (including dbplyr). Typically this will come from some sort of threshold based classification task where the classification output is a probability and the prediction class is a binary outcome.

Usage

calculateConfusionMatrixStats(df)

Arguments

df

a dataframe containing one observation per row & p_x1y1, p_x0y1, p_x1y0, and p_x0y0 columns (see probabilitiesFromConfusionMatrix)

Details

see also fBeta score vectorised function

Value

the datatable with additional columns for confusion matrix stats: true_pos_rate / true_neg_rate / etc...


terminological/tidy-info-stats documentation built on Nov. 19, 2022, 11:23 p.m.