Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SmartReplyMetrics.
The evaluation metrics for smart reply model.
Generated from protobuf message google.cloud.dialogflow.v2.SmartReplyMetrics
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ allowlist_coverage |
float
Percentage of target participant messages in the evaluation dataset for which similar messages have appeared at least once in the allowlist. Should be [0, 1]. |
↳ top_n_metrics |
array<Google\Cloud\Dialogflow\V2\SmartReplyMetrics\TopNMetrics>
Metrics of top n smart replies, sorted by TopNMetric.n. |
↳ conversation_count |
int|string
Total number of conversations used to generate this metric. |
getAllowlistCoverage
Percentage of target participant messages in the evaluation dataset for which similar messages have appeared at least once in the allowlist. Should be [0, 1].
Generated from protobuf field float allowlist_coverage = 1;
Returns | |
---|---|
Type | Description |
float |
setAllowlistCoverage
Percentage of target participant messages in the evaluation dataset for which similar messages have appeared at least once in the allowlist. Should be [0, 1].
Generated from protobuf field float allowlist_coverage = 1;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getTopNMetrics
Metrics of top n smart replies, sorted by TopNMetric.n.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setTopNMetrics
Metrics of top n smart replies, sorted by TopNMetric.n.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Dialogflow\V2\SmartReplyMetrics\TopNMetrics>
|
Returns | |
---|---|
Type | Description |
$this |
getConversationCount
Total number of conversations used to generate this metric.
Generated from protobuf field int64 conversation_count = 3;
Returns | |
---|---|
Type | Description |
int|string |
setConversationCount
Total number of conversations used to generate this metric.
Generated from protobuf field int64 conversation_count = 3;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |