Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SamplingStrategyRandomSampleConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_rateFloat

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

Returns:

  • (Float)


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