Google Cloud Ai Platform V1 Client - Class TrainTrialSpec (1.4.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

Namespace

Google \ Cloud \ AIPlatform \ V1 \ NasJobSpec \ MultiTrialAlgorithmSpec

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var Google\Cloud\AIPlatform\V1\CustomJobSpec
Returns
Type Description
$this

getMaxParallelTrialCount

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

Returns
Type Description
int

setMaxParallelTrialCount

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

Parameter
Name Description
var int
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this