Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/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) ⇒ GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics
Returns a new instance of GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics.
12176 12177 12178 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#top1 ⇒ Float
The top-1 value.
Corresponds to the JSON property top1
12159 12160 12161 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12159 def top1 @top1 end |
#top10 ⇒ Float
The top-10 value.
Corresponds to the JSON property top10
12164 12165 12166 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12164 def top10 @top10 end |
#top3 ⇒ Float
The top-3 value.
Corresponds to the JSON property top3
12169 12170 12171 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12169 def top3 @top3 end |
#top5 ⇒ Float
The top-5 value.
Corresponds to the JSON property top5
12174 12175 12176 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12174 def top5 @top5 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12181 12182 12183 12184 12185 12186 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12181 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 |