Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SamplingStrategy

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

Sampling Strategy for logging, can be for both training and prediction dataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SamplingStrategy

Returns a new instance of GoogleCloudAiplatformV1SamplingStrategy.



21637
21638
21639
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21637

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

Instance Attribute Details

#random_sample_configGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig

Requests are randomly selected. Corresponds to the JSON property randomSampleConfig



21635
21636
21637
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21635

def random_sample_config
  @random_sample_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21642
21643
21644
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21642

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