Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetricSource

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

The metric source used for evaluation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1MetricSource

Returns a new instance of GoogleCloudAiplatformV1beta1MetricSource.



26518
26519
26520
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26518

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

Instance Attribute Details

#metricGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Metric

The metric used for running evaluations. Corresponds to the JSON property metric



26511
26512
26513
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26511

def metric
  @metric
end

#metric_resource_nameString

Resource name for registered metric. Corresponds to the JSON property metricResourceName

Returns:

  • (String)


26516
26517
26518
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26516

def metric_resource_name
  @metric_resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



26523
26524
26525
26526
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26523

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