Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaQualityMetrics

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Describes the metrics produced by the evaluation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaQualityMetrics

Returns a new instance of GoogleCloudDiscoveryengineV1betaQualityMetrics.



15807
15808
15809
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15807

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

Instance Attribute Details

#doc_ndcgGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



15785
15786
15787
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15785

def doc_ndcg
  @doc_ndcg
end

#doc_precisionGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



15790
15791
15792
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15790

def doc_precision
  @doc_precision
end

#doc_recallGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



15795
15796
15797
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15795

def doc_recall
  @doc_recall
end

#page_ndcgGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



15800
15801
15802
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15800

def page_ndcg
  @page_ndcg
end

#page_recallGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



15805
15806
15807
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15805

def page_recall
  @page_recall
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15812
15813
15814
15815
15816
15817
15818
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15812

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