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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ multi_trial_algorithm |
int
The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to |
↳ metric |
Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\MetricSpec
Metric specs for the NAS job. Validation for this field is done at |
↳ 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 | |
---|---|
Type | Description |
int |
setMultiTrialAlgorithm
The multi-trial Neural Architecture Search (NAS) algorithm
type. Defaults to REINFORCEMENT_LEARNING
.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getMetric
Metric specs for the NAS job.
Validation for this field is done at multi_trial_algorithm_spec
field.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\MetricSpec
|
Returns | |
---|---|
Type | Description |
$this |
getSearchTrialSpec
Required. Spec for search trials.
Returns | |
---|---|
Type | Description |
Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\SearchTrialSpec|null |
hasSearchTrialSpec
clearSearchTrialSpec
setSearchTrialSpec
Required. Spec for search trials.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\SearchTrialSpec
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\AIPlatform\V1\NasJobSpec\MultiTrialAlgorithmSpec\TrainTrialSpec
|
Returns | |
---|---|
Type | Description |
$this |