Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ComputationBasedMetricSpec.
Specification for a computation based metric.
Generated from protobuf message google.cloud.aiplatform.v1.ComputationBasedMetricSpec
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
int
Required. The type of the computation based metric. |
↳ parameters |
Google\Protobuf\Struct
Optional. A map of parameters for the metric, e.g. {"rouge_type": "rougeL"}. |
getType
Required. The type of the computation based metric.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasType
clearType
setType
Required. The type of the computation based metric.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getParameters
Optional. A map of parameters for the metric, e.g. {"rouge_type": "rougeL"}.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Struct|null |
|
hasParameters
clearParameters
setParameters
Optional. A map of parameters for the metric, e.g. {"rouge_type": "rougeL"}.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Struct
|
| Returns | |
|---|---|
| Type | Description |
$this |
|