Google Cloud Ai Platform V1 Client - Class MultiTrialAlgorithmSpec (0.19.0)

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

The spec of multi-trial Neural Architecture Search (NAS).

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

Namespace

Google \ Cloud \ AIPlatform \ V1 \ NasJobSpec

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ multi_trial_algorithm int

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

↳ metric Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\MetricSpec

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

↳ search_trial_spec Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\SearchTrialSpec

Required. Spec for search trials.

↳ train_trial_spec Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\TrainTrialSpec

Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

getMultiTrialAlgorithm

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

Returns
TypeDescription
int

setMultiTrialAlgorithm

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMetric

Metric specs for the NAS job.

Validation for this field is done at multi_trial_algorithm_spec field.

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\MetricSpec|null

hasMetric

clearMetric

setMetric

Metric specs for the NAS job.

Validation for this field is done at multi_trial_algorithm_spec field.

Parameter
NameDescription
var Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\MetricSpec
Returns
TypeDescription
$this

getSearchTrialSpec

Required. Spec for search trials.

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\SearchTrialSpec|null

hasSearchTrialSpec

clearSearchTrialSpec

setSearchTrialSpec

Required. Spec for search trials.

Parameter
NameDescription
var Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\SearchTrialSpec
Returns
TypeDescription
$this

getTrainTrialSpec

Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\TrainTrialSpec|null

hasTrainTrialSpec

clearTrainTrialSpec

setTrainTrialSpec

Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

Parameter
NameDescription
var Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\TrainTrialSpec
Returns
TypeDescription
$this