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

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

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
class ClassificationReport
import { ClassificationReport } from "https://deno.land/x/netsaur@0.4.2/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>