Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ExampleComparison

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

Example comparisons comparing ground truth output and predictions for a specific input.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ExampleComparison

Returns a new instance of GoogleCloudDatalabelingV1beta1ExampleComparison.



2117
2118
2119
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2117

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

Instance Attribute Details

#ground_truth_exampleGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Example

An Example is a piece of data and its annotation. For example, an image with label "house". Corresponds to the JSON property groundTruthExample



2110
2111
2112
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2110

def ground_truth_example
  @ground_truth_example
end

#model_created_examplesArray<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Example>

Predictions by the model for the input. Corresponds to the JSON property modelCreatedExamples



2115
2116
2117
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2115

def model_created_examples
  @model_created_examples
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2122
2123
2124
2125
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2122

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