View Source GoogleApi.Language.V2.Model.XPSConfusionMatrix (google_api_language v0.15.0)

Confusion matrix of the model running the classification.

Attributes

  • annotationSpecIdToken (type: list(String.t), default: nil) - 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 (type: list(integer()), default: nil) - Category (mainly for segmentation). Set only for image segmentation models. Note: uCAIP Image Segmentation should use annotation_spec_id_token.
  • row (type: list(GoogleApi.Language.V2.Model.XPSConfusionMatrixRow.t), default: nil) - 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 (type: list(integer()), default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Language.V2.Model.XPSConfusionMatrix{
  annotationSpecIdToken: [String.t()] | nil,
  category: [integer()] | nil,
  row: [GoogleApi.Language.V2.Model.XPSConfusionMatrixRow.t()] | nil,
  sentimentLabel: [integer()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.