Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec

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

Specification for a computation based metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec

Returns a new instance of GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec.



17103
17104
17105
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17103

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>)


17096
17097
17098
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17096

def parameters
  @parameters
end

#typeString

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

Returns:

  • (String)


17101
17102
17103
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17101

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17108
17109
17110
17111
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17108

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