Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputationBasedMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputationBasedMetricSpec
- 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) ⇒ GoogleCloudAiplatformV1beta1ComputationBasedMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1beta1ComputationBasedMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ComputationBasedMetricSpec
Returns a new instance of GoogleCloudAiplatformV1beta1ComputationBasedMetricSpec.
5090 5091 5092 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5090 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
5083 5084 5085 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5083 def parameters @parameters end |
#type ⇒ String
Required. The type of the computation based metric.
Corresponds to the JSON property type
5088 5089 5090 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5088 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5095 5096 5097 5098 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5095 def update!(**args) @parameters = args[:parameters] if args.key?(:parameters) @type = args[:type] if args.key?(:type) end |