Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/vectorizer/mod.ts>ClassificationReport

Machine Learning utilities for TypeScript
Latest
class ClassificationReport
import { ClassificationReport } from "https://deno.land/x/vectorizer@v0.7.5/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>