Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetricSource

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

The metric source used for evaluation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1MetricSource

Returns a new instance of GoogleCloudAiplatformV1MetricSource.



24788
24789
24790
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24788

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

Instance Attribute Details

#metricGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Metric

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



24781
24782
24783
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24781

def metric
  @metric
end

#metric_resource_nameString

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

Returns:

  • (String)


24786
24787
24788
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24786

def metric_resource_name
  @metric_resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24793
24794
24795
24796
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24793

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