Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedHyperParameters

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

Hyperparameters for SFT.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SupervisedHyperParameters

Returns a new instance of GoogleCloudAiplatformV1SupervisedHyperParameters.



29680
29681
29682
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29680

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

Instance Attribute Details

#adapter_sizeString

Optional. Adapter size for tuning. Corresponds to the JSON property adapterSize

Returns:

  • (String)


29667
29668
29669
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29667

def adapter_size
  @adapter_size
end

#epoch_countFixnum

Optional. Number of complete passes the model makes over the entire training dataset during training. Corresponds to the JSON property epochCount

Returns:

  • (Fixnum)


29673
29674
29675
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29673

def epoch_count
  @epoch_count
end

#learning_rate_multiplierFloat

Optional. Multiplier for adjusting the default learning rate. Corresponds to the JSON property learningRateMultiplier

Returns:

  • (Float)


29678
29679
29680
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29678

def learning_rate_multiplier
  @learning_rate_multiplier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29685
29686
29687
29688
29689
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29685

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