distributeGuessAsExpectedValue: Distributes guesses of 3x3 confusion matrix to expected value...

View source: R/performance.R

distributeGuessAsExpectedValueR Documentation

Distributes guesses of 3x3 confusion matrix to expected value of 1 and -1.

Description

Given a 3x3 confusion matrix, distributes guesses in column 2 using the expected value. That is, moves half of guess counts (in column 2) to -1 (column 1) and the other half to 1 (column 3).

Usage

distributeGuessAsExpectedValue(confusion_matrix_3x3)

Arguments

confusion_matrix_3x3

A 3x3 matrix where the middle column is counts of guesses.

Details

-1 0 1 -1 2 2 2 0 4 4 4 1 6 6 6 becomes -1 0 1 -1 3 0 3 0 6 0 6 1 9 0 9

Value

A 3x3 confusion matrix with 0's in the middle column.


jeanimal/heuristica documentation built on Feb. 3, 2024, 9:56 p.m.