Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

XPSConfusionMatrix

import type { XPSConfusionMatrix } from "https://googleapis.deno.dev/v1/language:v2.ts";

Confusion matrix of the model running the classification.

interface XPSConfusionMatrix {
annotationSpecIdToken?: string[];
category?: number[];
sentimentLabel?: number[];
}

§Properties

§
annotationSpecIdToken?: string[]
[src]

For the following three repeated fields, only one is intended to be set. annotation_spec_id_token is preferable to be set. ID tokens of the annotation specs used in the confusion matrix.

§
category?: number[]
[src]

Category (mainly for segmentation). Set only for image segmentation models. Note: uCAIP Image Segmentation should use annotation_spec_id_token.

§

Rows in the confusion matrix. The number of rows is equal to the size of annotation_spec_id_token. row[i].value[j] is the number of examples that have ground truth of the annotation_spec_id_token[i] and are predicted as annotation_spec_id_token[j] by the model being evaluated.

§
sentimentLabel?: number[]
[src]

Sentiment labels used in the confusion matrix. Set only for text sentiment models. For AutoML Text Revamp, use annotation_spec_id_token instead and leave this field empty.