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.
17754 17755 17756 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17754 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sample_rate ⇒ Float
Sample rate (0, 1]
Corresponds to the JSON property sampleRate
17752 17753 17754 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17752 def sample_rate @sample_rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17759 17760 17761 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17759 def update!(**args) @sample_rate = args[:sample_rate] if args.key?(:sample_rate) end |