Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQualityMetrics

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

Describes the metrics produced by the evaluation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaQualityMetrics

Returns a new instance of GoogleCloudDiscoveryengineV1alphaQualityMetrics.



11273
11274
11275
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11273

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

Instance Attribute Details

#doc_ndcgGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

Stores the metric values at specific top-k levels. Corresponds to the JSON property docNdcg



11251
11252
11253
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11251

def doc_ndcg
  @doc_ndcg
end

#doc_precisionGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

Stores the metric values at specific top-k levels. Corresponds to the JSON property docPrecision



11256
11257
11258
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11256

def doc_precision
  @doc_precision
end

#doc_recallGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

Stores the metric values at specific top-k levels. Corresponds to the JSON property docRecall



11261
11262
11263
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11261

def doc_recall
  @doc_recall
end

#page_ndcgGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

Stores the metric values at specific top-k levels. Corresponds to the JSON property pageNdcg



11266
11267
11268
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11266

def page_ndcg
  @page_ndcg
end

#page_recallGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

Stores the metric values at specific top-k levels. Corresponds to the JSON property pageRecall



11271
11272
11273
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11271

def page_recall
  @page_recall
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11278
11279
11280
11281
11282
11283
11284
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11278

def update!(**args)
  @doc_ndcg = args[:doc_ndcg] if args.key?(:doc_ndcg)
  @doc_precision = args[:doc_precision] if args.key?(:doc_precision)
  @doc_recall = args[:doc_recall] if args.key?(:doc_recall)
  @page_ndcg = args[:page_ndcg] if args.key?(:page_ndcg)
  @page_recall = args[:page_recall] if args.key?(:page_recall)
end