Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1PrCurve
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1PrCurve
- 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
-
#annotation_spec ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec
Container of information related to one possible annotation that can be used in a labeling task.
-
#area_under_curve ⇒ Float
Area under the precision-recall curve.
-
#confidence_metrics_entries ⇒ Array<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry>
Entries that make up the precision-recall graph.
-
#mean_average_precision ⇒ Float
Mean average prcision of this curve.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1PrCurve
constructor
A new instance of GoogleCloudDatalabelingV1beta1PrCurve.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1PrCurve
Returns a new instance of GoogleCloudDatalabelingV1beta1PrCurve.
4025 4026 4027 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4025 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_spec ⇒ Google::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 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4006 def annotation_spec @annotation_spec end |
#area_under_curve ⇒ Float
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
4012 4013 4014 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4012 def area_under_curve @area_under_curve end |
#confidence_metrics_entries ⇒ Array<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 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4018 def confidence_metrics_entries @confidence_metrics_entries end |
#mean_average_precision ⇒ Float
Mean average prcision of this curve.
Corresponds to the JSON property meanAveragePrecision
4023 4024 4025 |
# File 'generated/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 'generated/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 |