Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StudySpecConvexStopConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StudySpecConvexStopConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Configuration for ConvexStopPolicy.
Instance Attribute Summary collapse
-
#autoregressive_order ⇒ Fixnum
The number of Trial measurements used in autoregressive model for value prediction.
-
#learning_rate_parameter_name ⇒ String
The hyper-parameter name used in the tuning job that stands for learning rate.
-
#max_num_steps ⇒ Fixnum
Steps used in predicting the final objective for early stopped trials.
-
#min_num_steps ⇒ Fixnum
Minimum number of steps for a trial to complete.
-
#use_seconds ⇒ Boolean
(also: #use_seconds?)
This bool determines whether or not the rule is applied based on elapsed_secs or steps.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1StudySpecConvexStopConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1StudySpecConvexStopConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1StudySpecConvexStopConfig
Returns a new instance of GoogleCloudAiplatformV1beta1StudySpecConvexStopConfig.
32405 32406 32407 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32405 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoregressive_order ⇒ Fixnum
The number of Trial measurements used in autoregressive model for value
prediction. A trial won't be considered early stopping if has fewer
measurement points.
Corresponds to the JSON property autoregressiveOrder
32369 32370 32371 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32369 def autoregressive_order @autoregressive_order end |
#learning_rate_parameter_name ⇒ String
The hyper-parameter name used in the tuning job that stands for learning rate.
Leave it blank if learning rate is not in a parameter in tuning. The
learning_rate is used to estimate the objective value of the ongoing trial.
Corresponds to the JSON property learningRateParameterName
32376 32377 32378 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32376 def learning_rate_parameter_name @learning_rate_parameter_name end |
#max_num_steps ⇒ Fixnum
Steps used in predicting the final objective for early stopped trials. In
general, it's set to be the same as the defined steps in training / tuning.
When use_steps is false, this field is set to the maximum elapsed seconds.
Corresponds to the JSON property maxNumSteps
32383 32384 32385 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32383 def max_num_steps @max_num_steps end |
#min_num_steps ⇒ Fixnum
Minimum number of steps for a trial to complete. Trials which do not have a
measurement with num_steps > min_num_steps won't be considered for early
stopping. It's ok to set it to 0, and a trial can be early stopped at any
stage. By default, min_num_steps is set to be one-tenth of the max_num_steps.
When use_steps is false, this field is set to the minimum elapsed seconds.
Corresponds to the JSON property minNumSteps
32392 32393 32394 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32392 def min_num_steps @min_num_steps end |
#use_seconds ⇒ Boolean Also known as: use_seconds?
This bool determines whether or not the rule is applied based on elapsed_secs
or steps. If use_seconds==false, the early stopping decision is made according
to the predicted objective values according to the target steps. If
use_seconds==true, elapsed_secs is used instead of steps. Also, in this case,
the parameters max_num_steps and min_num_steps are overloaded to contain
max_elapsed_seconds and min_elapsed_seconds.
Corresponds to the JSON property useSeconds
32402 32403 32404 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32402 def use_seconds @use_seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32410 32411 32412 32413 32414 32415 32416 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32410 def update!(**args) @autoregressive_order = args[:autoregressive_order] if args.key?(:autoregressive_order) @learning_rate_parameter_name = args[:learning_rate_parameter_name] if args.key?(:learning_rate_parameter_name) @max_num_steps = args[:max_num_steps] if args.key?(:max_num_steps) @min_num_steps = args[:min_num_steps] if args.key?(:min_num_steps) @use_seconds = args[:use_seconds] if args.key?(:use_seconds) end |