Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class Metric.
Metric and corresponding confidence intervals.
Generated from protobuf message google.cloud.dialogflow.cx.v3.Experiment.Result.Metric
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3 \ Experiment \ ResultMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
int
Ratio-based metric type. Only one of type or count_type is specified in each Metric. |
↳ count_type |
int
Count-based metric type. Only one of type or count_type is specified in each Metric. |
↳ ratio |
float
Ratio value of a metric. |
↳ count |
float
Count value of a metric. |
↳ confidence_interval |
ConfidenceInterval
The probability that the treatment is better than all other treatments in the experiment |
getType
Ratio-based metric type. Only one of type or count_type is specified in each Metric.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type MetricType. |
setType
Ratio-based metric type. Only one of type or count_type is specified in each Metric.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type MetricType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCountType
Count-based metric type. Only one of type or count_type is specified in each Metric.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type CountType. |
setCountType
Count-based metric type. Only one of type or count_type is specified in each Metric.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type CountType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRatio
Ratio value of a metric.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasRatio
setRatio
Ratio value of a metric.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCount
Count value of a metric.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasCount
setCount
Count value of a metric.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConfidenceInterval
The probability that the treatment is better than all other treatments in the experiment
| Returns | |
|---|---|
| Type | Description |
ConfidenceInterval|null |
|
hasConfidenceInterval
clearConfidenceInterval
setConfidenceInterval
The probability that the treatment is better than all other treatments in the experiment
| Parameter | |
|---|---|
| Name | Description |
var |
ConfidenceInterval
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValue
| Returns | |
|---|---|
| Type | Description |
string |
|