Google Cloud Ai Platform V1 Client - Class MetricResult (1.60.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class MetricResult.

Result for a single metric on a single instance.

Generated from protobuf message google.cloud.aiplatform.v1.MetricResult

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ score
float

Output only. The score for the metric. Please refer to each metric's documentation for the meaning of the score.

↳ explanation
string

Output only. The explanation for the metric result.

↳ error
Google\Rpc\Status

Output only. The error status for the metric result.

getScore

Output only. The score for the metric.

Please refer to each metric's documentation for the meaning of the score.

Returns
Type
Description
float

hasScore

clearScore

setScore

Output only. The score for the metric.

Please refer to each metric's documentation for the meaning of the score.

Parameter
Name
Description
var
float
Returns
Type
Description
$this

getExplanation

Output only. The explanation for the metric result.

Returns
Type
Description
string

hasExplanation

clearExplanation

setExplanation

Output only. The explanation for the metric result.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getError

Output only. The error status for the metric result.

Returns
Type
Description

hasError

clearError

setError

Output only. The error status for the metric result.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: