collapseConfusionMatrix3x3To2x2 {heuristica}R Documentation

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

Description

A 3x3 confusion matrix results from predictPair.

Usage

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.


[Package heuristica version 1.0.3 Index]