Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
- 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
Evaluation metrics when retrieving n smart replies with the model.
Instance Attribute Summary collapse
-
#n ⇒ Fixnum
Number of retrieved smart replies.
-
#recall ⇒ Float
Defined as
number of queries whose top n smart replies have at least one similar (token match similarity above the defined threshold) reply as the real replydivided bynumber of queries with at least one smart reply.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
constructor
A new instance of GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
Returns a new instance of GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics.
13980 13981 13982 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13980 def initialize(**args) update!(**args) end |
Instance Attribute Details
#n ⇒ Fixnum
Number of retrieved smart replies. For example, when n is 3, this evaluation
contains metrics for when Dialogflow retrieves 3 smart replies with the model.
Corresponds to the JSON property n
13970 13971 13972 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13970 def n @n end |
#recall ⇒ Float
Defined as number of queries whose top n smart replies have at least one
similar (token match similarity above the defined threshold) reply as the real
reply divided by number of queries with at least one smart reply. Value
ranges from 0.0 to 1.0 inclusive.
Corresponds to the JSON property recall
13978 13979 13980 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13978 def recall @recall end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13985 13986 13987 13988 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13985 def update!(**args) @n = args[:n] if args.key?(:n) @recall = args[:recall] if args.key?(:recall) end |