Class: Google::Cloud::Dialogflow::V2::SmartReplyMetrics::TopNMetrics
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::SmartReplyMetrics::TopNMetrics
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/v2/conversation_model.rb
Overview
Evaluation metrics when retrieving n
smart replies with the model.
Instance Attribute Summary collapse
-
#n ⇒ ::Integer
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 reply
divided bynumber of queries with at least one smart reply
.
Instance Attribute Details
#n ⇒ ::Integer
Returns 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.
261 262 263 264 |
# File 'proto_docs/google/cloud/dialogflow/v2/conversation_model.rb', line 261 class TopNMetrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#recall ⇒ ::Float
Returns 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.
261 262 263 264 |
# File 'proto_docs/google/cloud/dialogflow/v2/conversation_model.rb', line 261 class TopNMetrics include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |