Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix

Returns a new instance of GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix.



23366
23367
23368
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23366

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#annotation_specsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrixAnnotationSpecRef>

AnnotationSpecs used in the confusion matrix. For AutoML Text Extraction, a special negative AnnotationSpec with empty id and displayName of "NULL" will be added as the last element. Corresponds to the JSON property annotationSpecs



23349
23350
23351
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23349

def annotation_specs
  @annotation_specs
end

#rowsArray<Array<Object>>

Rows in the confusion matrix. The number of rows is equal to the size of annotationSpecs. rowsi is the number of DataItems that have ground truth of the annotationSpecs[i] and are predicted as annotationSpecs[j] by the Model being evaluated. For Text Extraction, when annotationSpecs[i] is the last element in annotationSpecs, i.e. the special negative AnnotationSpec, rowsi is the number of predicted entities of annoatationSpec[j] that are not labeled as any of the ground truth AnnotationSpec. When annotationSpecs[j] is the special negative AnnotationSpec, rowsi is the number of entities have ground truth of annotationSpec[i] that are not predicted as an entity by the Model. The value of the last cell, i.e. rowi where i == j and annotationSpec[i] is the special negative AnnotationSpec, is always 0. Corresponds to the JSON property rows

Returns:

  • (Array<Array<Object>>)


23364
23365
23366
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23364

def rows
  @rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23371
23372
23373
23374
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23371

def update!(**args)
  @annotation_specs = args[:annotation_specs] if args.key?(:annotation_specs)
  @rows = args[:rows] if args.key?(:rows)
end