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[];
row?: XPSConfusionMatrixRow[];
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.
§
row?: XPSConfusionMatrixRow[]
[src]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.