Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

Returns a new instance of GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics.



11311
11312
11313
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11311

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

Instance Attribute Details

#top1Float

The top-1 value. Corresponds to the JSON property top1

Returns:

  • (Float)


11294
11295
11296
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11294

def top1
  @top1
end

#top10Float

The top-10 value. Corresponds to the JSON property top10

Returns:

  • (Float)


11299
11300
11301
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11299

def top10
  @top10
end

#top3Float

The top-3 value. Corresponds to the JSON property top3

Returns:

  • (Float)


11304
11305
11306
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11304

def top3
  @top3
end

#top5Float

The top-5 value. Corresponds to the JSON property top5

Returns:

  • (Float)


11309
11310
11311
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11309

def top5
  @top5
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11316
11317
11318
11319
11320
11321
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11316

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