Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredefinedMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredefinedMetricSpec
- 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
The spec for a pre-defined metric.
Instance Attribute Summary collapse
-
#metric_spec_name ⇒ String
Required.
-
#metric_spec_parameters ⇒ Hash<String,Object>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1PredefinedMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1PredefinedMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1PredefinedMetricSpec
Returns a new instance of GoogleCloudAiplatformV1PredefinedMetricSpec.
28298 28299 28300 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28298 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_spec_name ⇒ String
Required. The name of a pre-defined metric, such as "instruction_following_v1"
or "text_quality_v1".
Corresponds to the JSON property metricSpecName
28291 28292 28293 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28291 def metric_spec_name @metric_spec_name end |
#metric_spec_parameters ⇒ Hash<String,Object>
Optional. The parameters needed to run the pre-defined metric.
Corresponds to the JSON property metricSpecParameters
28296 28297 28298 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28296 def metric_spec_parameters @metric_spec_parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
28303 28304 28305 28306 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28303 def update!(**args) @metric_spec_name = args[:metric_spec_name] if args.key?(:metric_spec_name) @metric_spec_parameters = args[:metric_spec_parameters] if args.key?(:metric_spec_parameters) end |