Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredefinedMetricSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1PredefinedMetricSpec

Returns a new instance of GoogleCloudAiplatformV1PredefinedMetricSpec.



28345
28346
28347
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28345

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#metric_spec_nameString

Required. The name of a pre-defined metric, such as "instruction_following_v1" or "text_quality_v1". Corresponds to the JSON property metricSpecName

Returns:

  • (String)


28338
28339
28340
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28338

def metric_spec_name
  @metric_spec_name
end

#metric_spec_parametersHash<String,Object>

Optional. The parameters needed to run the pre-defined metric. Corresponds to the JSON property metricSpecParameters

Returns:

  • (Hash<String,Object>)


28343
28344
28345
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28343

def metric_spec_parameters
  @metric_spec_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28350
28351
28352
28353
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28350

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