Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry

Returns a new instance of GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry.



1435
1436
1437
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1435

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



1427
1428
1429
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1427

def annotation_spec
  @annotation_spec
end

#item_countFixnum

Number of items predicted to have this label. (The ground truth label for these items is the Row.annotationSpec of this entry's parent.) Corresponds to the JSON property itemCount

Returns:

  • (Fixnum)


1433
1434
1435
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1433

def item_count
  @item_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1440
1441
1442
1443
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1440

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