collapseConfusionMatrix3x3To2x2: Collapses a 3x3 confusion matrix to a 2x2 confusion matrix.

Description Usage Arguments Details Value

View source: R/performance.R

Description

A 3x3 confusion matrix results from predictPair.

Usage

1
2
3
4
5
collapseConfusionMatrix3x3To2x2(
  confusion_matrix_3x3,
  guess_handling_fn = distributeGuessAsExpectedValue,
  tie_handling_fn = distributeTies
)

Arguments

confusion_matrix_3x3

A 3x3 confusion matrix.

guess_handling_fn

A function to call on the 3x3 confusion matrix to assign a model's guesses– 0 predictions tracked in the 2nd column– to -1 or 1 counts.

tie_handling_fn

A function to call on the 3x3 confusion matrix to distribute ties– 0 correct answers tracked in the 2nd row– to -1 or 1 counts.

Details

The middle column repressents guesses. The middle row represents ties. T

Value

A 2x2 confusion matrix.


heuristica documentation built on Sept. 8, 2021, 9:08 a.m.