Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationMetrics

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) ⇒ GoogleCloudDatalabelingV1beta1EvaluationMetrics

Returns a new instance of GoogleCloudDatalabelingV1beta1EvaluationMetrics.



2009
2010
2011
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2009

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

Instance Attribute Details

#classification_metricsGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ClassificationMetrics

Metrics calculated for a classification model. Corresponds to the JSON property classificationMetrics



2002
2003
2004
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2002

def classification_metrics
  @classification_metrics
end

#object_detection_metricsGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics

Metrics calculated for an image object detection (bounding box) model. Corresponds to the JSON property objectDetectionMetrics



2007
2008
2009
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2007

def object_detection_metrics
  @object_detection_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2014
2015
2016
2017
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2014

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