Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec
- 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 pre-defined metric.
Instance Attribute Summary collapse
-
#metric_spec_name ⇒ String
Required.
-
#parameters ⇒ Hash<String,Object>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec
Returns a new instance of GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec.
10802 10803 10804 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10802 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
10795 10796 10797 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10795 def metric_spec_name @metric_spec_name end |
#parameters ⇒ Hash<String,Object>
Optional. The parameters needed to run the pre-defined metric.
Corresponds to the JSON property parameters
10800 10801 10802 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10800 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10807 10808 10809 10810 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10807 def update!(**args) @metric_spec_name = args[:metric_spec_name] if args.key?(:metric_spec_name) @parameters = args[:parameters] if args.key?(:parameters) end |