Class: Google::Apis::LanguageV2::XpsBoundingBoxMetricsEntry
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsBoundingBoxMetricsEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
Bounding box matching model metrics for a single intersection-over-union threshold and multiple label match confidence thresholds.
Instance Attribute Summary collapse
-
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV2::XpsBoundingBoxMetricsEntryConfidenceMetricsEntry>
Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96, 0.97,0.98,0.99.
-
#iou_threshold ⇒ Float
The intersection-over-union threshold value used to compute this metrics entry.
-
#mean_average_precision ⇒ Float
The mean average precision.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsBoundingBoxMetricsEntry
constructor
A new instance of XpsBoundingBoxMetricsEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsBoundingBoxMetricsEntry
Returns a new instance of XpsBoundingBoxMetricsEntry.
1065 1066 1067 |
# File 'lib/google/apis/language_v2/classes.rb', line 1065 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV2::XpsBoundingBoxMetricsEntryConfidenceMetricsEntry>
Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96,
0.97,0.98,0.99.
Corresponds to the JSON property confidenceMetricsEntries
1053 1054 1055 |
# File 'lib/google/apis/language_v2/classes.rb', line 1053 def confidence_metrics_entries @confidence_metrics_entries end |
#iou_threshold ⇒ Float
The intersection-over-union threshold value used to compute this metrics entry.
Corresponds to the JSON property iouThreshold
1058 1059 1060 |
# File 'lib/google/apis/language_v2/classes.rb', line 1058 def iou_threshold @iou_threshold end |
#mean_average_precision ⇒ Float
The mean average precision.
Corresponds to the JSON property meanAveragePrecision
1063 1064 1065 |
# File 'lib/google/apis/language_v2/classes.rb', line 1063 def mean_average_precision @mean_average_precision end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1070 1071 1072 1073 1074 |
# File 'lib/google/apis/language_v2/classes.rb', line 1070 def update!(**args) @confidence_metrics_entries = args[:confidence_metrics_entries] if args.key?(:confidence_metrics_entries) @iou_threshold = args[:iou_threshold] if args.key?(:iou_threshold) @mean_average_precision = args[:mean_average_precision] if args.key?(:mean_average_precision) end |