Class: Google::Apis::LanguageV1::XpsVideoActionMetricsEntry
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1::XpsVideoActionMetricsEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb
Overview
The Evaluation metrics entry given a specific precision_window_length.
Instance Attribute Summary collapse
-
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV1::XpsVideoActionMetricsEntryConfidenceMetricsEntry>
Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96, 0.97,0.98,0.99.
-
#mean_average_precision ⇒ Float
The mean average precision.
-
#precision_window_length ⇒ String
This VideoActionMetricsEntry is calculated based on this prediction window length.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsVideoActionMetricsEntry
constructor
A new instance of XpsVideoActionMetricsEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsVideoActionMetricsEntry
Returns a new instance of XpsVideoActionMetricsEntry.
4973 4974 4975 |
# File 'lib/google/apis/language_v1/classes.rb', line 4973 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV1::XpsVideoActionMetricsEntryConfidenceMetricsEntry>
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
4958 4959 4960 |
# File 'lib/google/apis/language_v1/classes.rb', line 4958 def confidence_metrics_entries @confidence_metrics_entries end |
#mean_average_precision ⇒ Float
The mean average precision.
Corresponds to the JSON property meanAveragePrecision
4963 4964 4965 |
# File 'lib/google/apis/language_v1/classes.rb', line 4963 def mean_average_precision @mean_average_precision end |
#precision_window_length ⇒ String
This VideoActionMetricsEntry is calculated based on this prediction window
length. If the predicted action's timestamp is inside the time window whose
center is the ground truth action's timestamp with this specific length, the
prediction result is treated as a true positive.
Corresponds to the JSON property precisionWindowLength
4971 4972 4973 |
# File 'lib/google/apis/language_v1/classes.rb', line 4971 def precision_window_length @precision_window_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4978 4979 4980 4981 4982 |
# File 'lib/google/apis/language_v1/classes.rb', line 4978 def update!(**args) @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) @precision_window_length = args[:precision_window_length] if args.key?(:precision_window_length) end |