Google Cloud Ai Platform V1 Client - Class Parameter (0.18.0)

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

A message representing a parameter to be tuned.

Generated from protobuf message google.cloud.aiplatform.v1.Trial.Parameter

Namespace

Google \ Cloud \ AIPlatform \ V1 \ Trial

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parameter_id string

Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters.

↳ value Google\Protobuf\Value

Output only. The value of the parameter. number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

getParameterId

Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters.

Returns
TypeDescription
string

setParameterId

Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValue

Output only. The value of the parameter.

number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

Returns
TypeDescription
Google\Protobuf\Value|null

hasValue

clearValue

setValue

Output only. The value of the parameter.

number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

Parameter
NameDescription
var Google\Protobuf\Value
Returns
TypeDescription
$this