Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig

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

Requests are randomly selected.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig

Returns a new instance of GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig.



22266
22267
22268
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22266

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

Instance Attribute Details

#sample_rateFloat

Sample rate (0, 1] Corresponds to the JSON property sampleRate

Returns:

  • (Float)


22264
22265
22266
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22264

def sample_rate
  @sample_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22271
22272
22273
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22271

def update!(**args)
  @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
end