Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SamplingStrategyRandomSampleConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SamplingStrategyRandomSampleConfig
- 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
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) ⇒ GoogleCloudAiplatformV1beta1SamplingStrategyRandomSampleConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1SamplingStrategyRandomSampleConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SamplingStrategyRandomSampleConfig
Returns a new instance of GoogleCloudAiplatformV1beta1SamplingStrategyRandomSampleConfig.
24520 24521 24522 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24520 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sample_rate ⇒ Float
Sample rate (0, 1]
Corresponds to the JSON property sampleRate
24518 24519 24520 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24518 def sample_rate @sample_rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
24525 24526 24527 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24525 def update!(**args) @sample_rate = args[:sample_rate] if args.key?(:sample_rate) end |