Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetrics

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

Overview

The evaluation metrics for smart reply model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SmartReplyMetrics

Returns a new instance of GoogleCloudDialogflowV2SmartReplyMetrics.



14795
14796
14797
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14795

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

Instance Attribute Details

#allowlist_coverageFloat

Percentage of target participant messages in the evaluation dataset for which similar messages have appeared at least once in the allowlist. Should be [0, 1] . Corresponds to the JSON property allowlistCoverage

Returns:

  • (Float)


14783
14784
14785
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14783

def allowlist_coverage
  @allowlist_coverage
end

#conversation_countFixnum

Total number of conversations used to generate this metric. Corresponds to the JSON property conversationCount

Returns:

  • (Fixnum)


14788
14789
14790
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14788

def conversation_count
  @conversation_count
end

#top_n_metricsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics>

Metrics of top n smart replies, sorted by TopNMetric.n. Corresponds to the JSON property topNMetrics



14793
14794
14795
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14793

def top_n_metrics
  @top_n_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14800
14801
14802
14803
14804
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14800

def update!(**args)
  @allowlist_coverage = args[:allowlist_coverage] if args.key?(:allowlist_coverage)
  @conversation_count = args[:conversation_count] if args.key?(:conversation_count)
  @top_n_metrics = args[:top_n_metrics] if args.key?(:top_n_metrics)
end