Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SupervisedHyperParameters
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SupervisedHyperParameters
- 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
Hyperparameters for SFT.
Instance Attribute Summary collapse
-
#adapter_size ⇒ String
Optional.
-
#epoch_count ⇒ Fixnum
Optional.
-
#learning_rate_multiplier ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SupervisedHyperParameters
constructor
A new instance of GoogleCloudAiplatformV1beta1SupervisedHyperParameters.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SupervisedHyperParameters
Returns a new instance of GoogleCloudAiplatformV1beta1SupervisedHyperParameters.
33436 33437 33438 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33436 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adapter_size ⇒ String
Optional. Adapter size for tuning.
Corresponds to the JSON property adapterSize
33423 33424 33425 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33423 def adapter_size @adapter_size end |
#epoch_count ⇒ Fixnum
Optional. Number of complete passes the model makes over the entire training
dataset during training.
Corresponds to the JSON property epochCount
33429 33430 33431 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33429 def epoch_count @epoch_count end |
#learning_rate_multiplier ⇒ Float
Optional. Multiplier for adjusting the default learning rate.
Corresponds to the JSON property learningRateMultiplier
33434 33435 33436 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33434 def learning_rate_multiplier @learning_rate_multiplier end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
33441 33442 33443 33444 33445 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33441 def update!(**args) @adapter_size = args[:adapter_size] if args.key?(:adapter_size) @epoch_count = args[:epoch_count] if args.key?(:epoch_count) @learning_rate_multiplier = args[:learning_rate_multiplier] if args.key?(:learning_rate_multiplier) end |