Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec

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

Specification for a pre-defined metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec

Returns a new instance of GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec.



10105
10106
10107
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10105

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

Instance Attribute Details

#metric_spec_nameString

Required. The name of a pre-defined metric, such as "instruction_following_v1" or "text_quality_v1". Corresponds to the JSON property metricSpecName

Returns:

  • (String)


10098
10099
10100
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10098

def metric_spec_name
  @metric_spec_name
end

#parametersHash<String,Object>

Optional. The parameters needed to run the pre-defined metric. Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


10103
10104
10105
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10103

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10110
10111
10112
10113
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10110

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