Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1OnlineEvaluatorConfig

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 sampling behavior of the OnlineEvaluator. The OnlineEvaluator runs at a fixed interval of 10 minutes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1OnlineEvaluatorConfig

Returns a new instance of GoogleCloudAiplatformV1OnlineEvaluatorConfig.



28419
28420
28421
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28419

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

Instance Attribute Details

#max_evaluated_samples_per_runFixnum

Optional. The maximum number of evaluations to perform per run. If set to 0, the number is unbounded. Corresponds to the JSON property maxEvaluatedSamplesPerRun

Returns:

  • (Fixnum)


28412
28413
28414
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28412

def max_evaluated_samples_per_run
  @max_evaluated_samples_per_run
end

#random_samplingGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1OnlineEvaluatorConfigRandomSampling

Configuration for random sampling. Corresponds to the JSON property randomSampling



28417
28418
28419
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28417

def random_sampling
  @random_sampling
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28424
28425
28426
28427
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28424

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