Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQualityMetrics

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) ⇒ GoogleCloudDiscoveryengineV1betaQualityMetrics

Returns a new instance of GoogleCloudDiscoveryengineV1betaQualityMetrics.



18268
18269
18270
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18268

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

Instance Attribute Details

#doc_ndcgGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



18246
18247
18248
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18246

def doc_ndcg
  @doc_ndcg
end

#doc_precisionGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



18251
18252
18253
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18251

def doc_precision
  @doc_precision
end

#doc_recallGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



18256
18257
18258
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18256

def doc_recall
  @doc_recall
end

#page_ndcgGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



18261
18262
18263
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18261

def page_ndcg
  @page_ndcg
end

#page_recallGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics

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



18266
18267
18268
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18266

def page_recall
  @page_recall
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18273
18274
18275
18276
18277
18278
18279
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18273

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