Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Stores the metric values at specific top-k levels.
Instance Attribute Summary collapse
-
#top1 ⇒ Float
The top-1 value.
-
#top10 ⇒ Float
The top-10 value.
-
#top3 ⇒ Float
The top-3 value.
-
#top5 ⇒ Float
The top-5 value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics
constructor
A new instance of GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics
Returns a new instance of GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics.
17937 17938 17939 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17937 def initialize(**args) update!(**args) end |
Instance Attribute Details
#top1 ⇒ Float
The top-1 value.
Corresponds to the JSON property top1
17920 17921 17922 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17920 def top1 @top1 end |
#top10 ⇒ Float
The top-10 value.
Corresponds to the JSON property top10
17925 17926 17927 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17925 def top10 @top10 end |
#top3 ⇒ Float
The top-3 value.
Corresponds to the JSON property top3
17930 17931 17932 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17930 def top3 @top3 end |
#top5 ⇒ Float
The top-5 value.
Corresponds to the JSON property top5
17935 17936 17937 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17935 def top5 @top5 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17942 17943 17944 17945 17946 17947 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17942 def update!(**args) @top1 = args[:top1] if args.key?(:top1) @top10 = args[:top10] if args.key?(:top10) @top3 = args[:top3] if args.key?(:top3) @top5 = args[:top5] if args.key?(:top5) end |