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

x/netsaur/packages/utilities/mod.ts>ClassificationReport

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

A report with metrics for classification results

Constructors

new
ClassificationReport(y: ArrayLike<unknown>, y1: ArrayLike<unknown>)

Properties

false: number

Number of elements classified incorrectly

labels: string[]
reports: Map<string, Report>
size: number

Total number of elements

true: number

Number of elements classified correctly

Methods

toHtml(): string
toJson(): { class: string[]; precision: number[]; f1: number[]; recall: number[]; support: number[]; }
toString(): string
[Symbol.for("Jupyter.display")](): Record<string, string>