Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec

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 computation based metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec

Returns a new instance of GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec.



12211
12212
12213
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12211

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

Instance Attribute Details

#parametersHash<String,Object>

Optional. A map of parameters for the metric, e.g. "rouge_type": "rougeL". Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


12204
12205
12206
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12204

def parameters
  @parameters
end

#typeString

Required. The type of the computation based metric. Corresponds to the JSON property type

Returns:

  • (String)


12209
12210
12211
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12209

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12216
12217
12218
12219
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12216

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