Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::SmartReplyMetrics::TopNMetrics (v0.20.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::SmartReplyMetrics::TopNMetrics.

Evaluation metrics when retrieving n smart replies with the model.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#n

def n() -> ::Integer
Returns
  • (::Integer) — 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.

#n=

def n=(value) -> ::Integer
Parameter
  • value (::Integer) — 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.
Returns
  • (::Integer) — 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.

#recall

def recall() -> ::Float
Returns
  • (::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.

#recall=

def recall=(value) -> ::Float
Parameter
  • value (::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.
Returns
  • (::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.