Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1OnlineEvaluatorConfigRandomSampling

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

Configuration for random sampling.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1OnlineEvaluatorConfigRandomSampling

Returns a new instance of GoogleCloudAiplatformV1OnlineEvaluatorConfigRandomSampling.



29384
29385
29386
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29384

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

Instance Attribute Details

#percentageFixnum

Required. The percentage of traces to sample for evaluation. Must be an integer between 1 and 100. Corresponds to the JSON property percentage

Returns:

  • (Fixnum)


29382
29383
29384
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29382

def percentage
  @percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29389
29390
29391
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29389

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