Class: Google::Apis::LanguageV1beta2::XpsImageObjectDetectionEvaluationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsImageObjectDetectionEvaluationMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Overview
Model evaluation metrics for image object detection problems. Evaluates prediction quality of labeled bounding boxes.
Instance Attribute Summary collapse
-
#bounding_box_mean_average_precision ⇒ Float
The single metric for bounding boxes evaluation: the mean_average_precision averaged over all bounding_box_metrics_entries.
-
#bounding_box_metrics_entries ⇒ Array<Google::Apis::LanguageV1beta2::XpsBoundingBoxMetricsEntry>
The bounding boxes match metrics for each Intersection-over-union threshold 0.
-
#evaluated_bounding_box_count ⇒ Fixnum
The total number of bounding boxes (i.e. summed over all images) the ground truth used to create this evaluation had.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsImageObjectDetectionEvaluationMetrics
constructor
A new instance of XpsImageObjectDetectionEvaluationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsImageObjectDetectionEvaluationMetrics
Returns a new instance of XpsImageObjectDetectionEvaluationMetrics.
2813 2814 2815 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2813 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bounding_box_mean_average_precision ⇒ Float
The single metric for bounding boxes evaluation: the mean_average_precision
averaged over all bounding_box_metrics_entries.
Corresponds to the JSON property boundingBoxMeanAveragePrecision
2798 2799 2800 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2798 def bounding_box_mean_average_precision @bounding_box_mean_average_precision end |
#bounding_box_metrics_entries ⇒ Array<Google::Apis::LanguageV1beta2::XpsBoundingBoxMetricsEntry>
The bounding boxes match metrics for each Intersection-over-union threshold 0.
05,0.10,...,0.95,0.96,0.97,0.98,0.99 and each label confidence threshold 0.05,
0.10,...,0.95,0.96,0.97,0.98,0.99 pair.
Corresponds to the JSON property boundingBoxMetricsEntries
2805 2806 2807 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2805 def bounding_box_metrics_entries @bounding_box_metrics_entries end |
#evaluated_bounding_box_count ⇒ Fixnum
The total number of bounding boxes (i.e. summed over all images) the ground
truth used to create this evaluation had.
Corresponds to the JSON property evaluatedBoundingBoxCount
2811 2812 2813 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2811 def evaluated_bounding_box_count @evaluated_bounding_box_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2818 2819 2820 2821 2822 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2818 def update!(**args) @bounding_box_mean_average_precision = args[:bounding_box_mean_average_precision] if args.key?(:bounding_box_mean_average_precision) @bounding_box_metrics_entries = args[:bounding_box_metrics_entries] if args.key?(:bounding_box_metrics_entries) @evaluated_bounding_box_count = args[:evaluated_bounding_box_count] if args.key?(:evaluated_bounding_box_count) end |