Class: Google::Apis::LanguageV1beta2::XpsBoundingBoxMetricsEntry

Inherits:
Object
  • Object
show all
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

Bounding box matching model metrics for a single intersection-over-union threshold and multiple label match confidence thresholds.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsBoundingBoxMetricsEntry

Returns a new instance of XpsBoundingBoxMetricsEntry.



1365
1366
1367
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1365

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

Instance Attribute Details

#confidence_metrics_entriesArray<Google::Apis::LanguageV1beta2::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



1353
1354
1355
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1353

def confidence_metrics_entries
  @confidence_metrics_entries
end

#iou_thresholdFloat

The intersection-over-union threshold value used to compute this metrics entry. Corresponds to the JSON property iouThreshold

Returns:

  • (Float)


1358
1359
1360
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1358

def iou_threshold
  @iou_threshold
end

#mean_average_precisionFloat

The mean average precision. Corresponds to the JSON property meanAveragePrecision

Returns:

  • (Float)


1363
1364
1365
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1363

def mean_average_precision
  @mean_average_precision
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1370
1371
1372
1373
1374
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1370

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