Google Cloud Ai Platform V1 Client - Class TrainTrialSpec (0.12.0)

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

Represent spec for train trials.

Generated from protobuf message google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ train_trial_job_spec Google\Cloud\AIPlatform\V1\CustomJobSpec

Required. The spec of a train trial job. The same spec applies to all train trials.

↳ max_parallel_trial_count int

Required. The maximum number of trials to run in parallel.

↳ frequency int

Required. Frequency of search trials to start train stage. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

getTrainTrialJobSpec

Required. The spec of a train trial job. The same spec applies to all train trials.

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\CustomJobSpec|null

hasTrainTrialJobSpec

clearTrainTrialJobSpec

setTrainTrialJobSpec

Required. The spec of a train trial job. The same spec applies to all train trials.

Parameter
NameDescription
var Google\Cloud\AIPlatform\V1\CustomJobSpec
Returns
TypeDescription
$this

getMaxParallelTrialCount

Required. The maximum number of trials to run in parallel.

Returns
TypeDescription
int

setMaxParallelTrialCount

Required. The maximum number of trials to run in parallel.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFrequency

Required. Frequency of search trials to start train stage. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

Returns
TypeDescription
int

setFrequency

Required. Frequency of search trials to start train stage. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

Parameter
NameDescription
var int
Returns
TypeDescription
$this