Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Represent spec for train trials.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec

Returns a new instance of GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec.



16783
16784
16785
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16783

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#frequencyFixnum

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. Corresponds to the JSON property frequency

Returns:

  • (Fixnum)


16771
16772
16773
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16771

def frequency
  @frequency
end

#max_parallel_trial_countFixnum

Required. The maximum number of trials to run in parallel. Corresponds to the JSON property maxParallelTrialCount

Returns:

  • (Fixnum)


16776
16777
16778
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16776

def max_parallel_trial_count
  @max_parallel_trial_count
end

#train_trial_job_specGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomJobSpec

Represents the spec of a CustomJob. Corresponds to the JSON property trainTrialJobSpec



16781
16782
16783
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16781

def train_trial_job_spec
  @train_trial_job_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16788
16789
16790
16791
16792
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16788

def update!(**args)
  @frequency = args[:frequency] if args.key?(:frequency)
  @max_parallel_trial_count = args[:max_parallel_trial_count] if args.key?(:max_parallel_trial_count)
  @train_trial_job_spec = args[:train_trial_job_spec] if args.key?(:train_trial_job_spec)
end