Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaQualityMetrics

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

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.



7565
7566
7567
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7565

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

Instance Attribute Details

#doc_ndcgGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

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



7543
7544
7545
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7543

def doc_ndcg
  @doc_ndcg
end

#doc_precisionGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

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



7548
7549
7550
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7548

def doc_precision
  @doc_precision
end

#doc_recallGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

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



7553
7554
7555
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7553

def doc_recall
  @doc_recall
end

#page_ndcgGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

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



7558
7559
7560
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7558

def page_ndcg
  @page_ndcg
end

#page_recallGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics

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



7563
7564
7565
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7563

def page_recall
  @page_recall
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7570
7571
7572
7573
7574
7575
7576
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7570

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