Interface SmartReplyMetrics.TopNMetricsOrBuilder (4.18.0)

public static interface SmartReplyMetrics.TopNMetricsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getN()

public abstract 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
Type Description
int

The n.

getRecall()

public abstract 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
Type Description
float

The recall.