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.



21048
21049
21050
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21048

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



21046
21047
21048
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21046

def random_sample_config
  @random_sample_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21053
21054
21055
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21053

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