Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompositeReinforcementTuningRewardConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompositeReinforcementTuningRewardConfig
- 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
Composite reward function configuration for reinforcement tuning.
Instance Attribute Summary collapse
-
#weighted_reward_configs ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompositeReinforcementTuningRewardConfigWeightedRewardConfig>
List of reward function configurations with weights.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CompositeReinforcementTuningRewardConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1CompositeReinforcementTuningRewardConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CompositeReinforcementTuningRewardConfig
Returns a new instance of GoogleCloudAiplatformV1beta1CompositeReinforcementTuningRewardConfig.
10300 10301 10302 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10300 def initialize(**args) update!(**args) end |
Instance Attribute Details
#weighted_reward_configs ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompositeReinforcementTuningRewardConfigWeightedRewardConfig>
List of reward function configurations with weights.
Corresponds to the JSON property weightedRewardConfigs
10298 10299 10300 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10298 def weighted_reward_configs @weighted_reward_configs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10305 10306 10307 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10305 def update!(**args) @weighted_reward_configs = args[:weighted_reward_configs] if args.key?(:weighted_reward_configs) end |