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.



21067
21068
21069
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21067

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

Instance Attribute Details

#sample_rateFloat

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

Returns:

  • (Float)


21065
21066
21067
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21065

def sample_rate
  @sample_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21072
21073
21074
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21072

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