Interface SmartReplyMetrics.TopNMetricsOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SmartReplyMetrics.TopNMetrics, SmartReplyMetrics.TopNMetrics.Builder
Enclosing class:
SmartReplyMetrics

public static interface SmartReplyMetrics.TopNMetricsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Number of retrieved smart replies.
    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`.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getN

      int getN()
       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.
       
      int32 n = 1;
      Returns:
      The n.
    • getRecall

      float getRecall()
       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.
       
      float recall = 2;
      Returns:
      The recall.