Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/packages/utilities/src/metrics/classification.ts>ConfusionMatrix

Powerful machine learning, accelerated by WebGPU
Go to Latest
class ConfusionMatrix
import { ConfusionMatrix } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/src/metrics/classification.ts";

Confusion matrix for the result.

Constructors

new
ConfusionMatrix(unnamed 0:
[
number,
number,
number,
number,
]
, unnamed 1?: [string, string]
)

Properties

false: number

Number of elements classified incorrectly

falseNegative: number

Number of positive elements classified incorrectly

falsePositive: number

Number of negative elements classified incorrectly

labelN: string

Label for negative elements

labelP: string

Label for positive elements

size: number

Total number of elements

true: number

Number of elements classified correctly

trueNegative: number

Number of negative elements classified correctly

truePositive: number

Number of positive elements classified correctly

Methods

valueOf():
[
number,
number,
number,
number,
]

Static Methods

fromResults(y: ArrayLike<unknown>, y1: ArrayLike<unknown>): ConfusionMatrix