Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputationBasedMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputationBasedMetricSpec
- 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
-
#parameters ⇒ Hash<String,Object>
Optional.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1ComputationBasedMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1ComputationBasedMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1ComputationBasedMetricSpec
Returns a new instance of GoogleCloudAiplatformV1ComputationBasedMetricSpec.
4397 4398 4399 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4397 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
4390 4391 4392 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4390 def parameters @parameters end |
#type ⇒ String
Required. The type of the computation based metric.
Corresponds to the JSON property type
4395 4396 4397 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4395 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4402 4403 4404 4405 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4402 def update!(**args) @parameters = args[:parameters] if args.key?(:parameters) @type = args[:type] if args.key?(:type) end |