Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig
- 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
Requests are randomly selected.
Instance Attribute Summary collapse
-
#sample_rate ⇒ Float
Sample rate (0, 1] Corresponds to the JSON property
sampleRate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig
constructor
A new instance of GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig
Returns a new instance of GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig.
36245 36246 36247 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 36245 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sample_rate ⇒ Float
Sample rate (0, 1]
Corresponds to the JSON property sampleRate
36243 36244 36245 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 36243 def sample_rate @sample_rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
36250 36251 36252 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 36250 def update!(**args) @sample_rate = args[:sample_rate] if args.key?(:sample_rate) end |