Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec
- 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
-
#parameters ⇒ Hash<String,Object>
Optional.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec
Returns a new instance of GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec.
12251 12252 12253 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12251 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parameters ⇒ Hash<String,Object>
Optional. A map of parameters for the metric, e.g. "rouge_type": "rougeL".
Corresponds to the JSON property parameters
12244 12245 12246 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12244 def parameters @parameters end |
#type ⇒ String
Required. The type of the computation based metric.
Corresponds to the JSON property type
12249 12250 12251 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12249 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12256 12257 12258 12259 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12256 def update!(**args) @parameters = args[:parameters] if args.key?(:parameters) @type = args[:type] if args.key?(:type) end |