Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Row

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

Overview

A row in the confusion matrix. Each entry in this row has the same ground truth label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1Row

Returns a new instance of GoogleCloudDatalabelingV1beta1Row.



4083
4084
4085
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4083

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

Instance Attribute Details

#annotation_specGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec

Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as dog or cat must reference an AnnotationSpec for dog and an AnnotationSpec for cat. Corresponds to the JSON property annotationSpec



4075
4076
4077
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4075

def annotation_spec
  @annotation_spec
end

#entriesArray<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry>

A list of the confusion matrix entries. One entry for each possible predicted label. Corresponds to the JSON property entries



4081
4082
4083
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4081

def entries
  @entries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4088
4089
4090
4091
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4088

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