ErrorMatrix

class ErrorMatrix(data: Collection<ErrorResult>? = null, name: String? = null) : IdentityIfc

Computes the confusion matrix

There are two classes class 1 (positive) and class 0 (negative) An instance (exemplar) must be in one of the classes.

Constructors

Link copied to clipboard
constructor(data: Collection<ErrorResult>? = null, name: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
open override var label: String?
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
val numFN: Int
Link copied to clipboard
val numFP: Int
Link copied to clipboard
val numN: Int
Link copied to clipboard
val numP: Int
Link copied to clipboard
val numPN: Int
Link copied to clipboard
val numPP: Int
Link copied to clipboard
val numTN: Int
Link copied to clipboard
val numTP: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val total: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun collect(case: Pair<Double, Double>)

Present the case to the matrix for tabulation first = actual, second = predicted

fun collect(errorResult: ErrorResult)
fun collect(actual: Boolean, predicted: Boolean)
fun collect(actual: Double, predicted: Double)
fun collect(actual: Int, predicted: Int)

Present the case to the matrix for tabulation

Link copied to clipboard
fun count(errorResult: ErrorResult): Int
Link copied to clipboard
fun frequencyData(sortedByCount: Boolean = false): List<StringFrequencyData>
Link copied to clipboard
fun frequencyPlot(proportions: Boolean = false): StringFrequencyPlot
Link copied to clipboard
fun reset()
Link copied to clipboard
open override fun toString(): String