Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1PrCurve

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1PrCurve

Returns a new instance of GoogleCloudDatalabelingV1beta1PrCurve.



4025
4026
4027
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4025

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



4006
4007
4008
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4006

def annotation_spec
  @annotation_spec
end

#area_under_curveFloat

Area under the precision-recall curve. Not to be confused with area under a receiver operating characteristic (ROC) curve. Corresponds to the JSON property areaUnderCurve

Returns:

  • (Float)


4012
4013
4014
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4012

def area_under_curve
  @area_under_curve
end

#confidence_metrics_entriesArray<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry>

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold. Corresponds to the JSON property confidenceMetricsEntries



4018
4019
4020
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4018

def confidence_metrics_entries
  @confidence_metrics_entries
end

#mean_average_precisionFloat

Mean average prcision of this curve. Corresponds to the JSON property meanAveragePrecision

Returns:

  • (Float)


4023
4024
4025
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4023

def mean_average_precision
  @mean_average_precision
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4030
4031
4032
4033
4034
4035
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4030

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