Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetric

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

The metric used for evaluation runs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationRunMetric

Returns a new instance of GoogleCloudAiplatformV1beta1EvaluationRunMetric.



18846
18847
18848
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18846

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

Instance Attribute Details

#computation_based_metric_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec

Specification for a computation based metric. Corresponds to the JSON property computationBasedMetricSpec



18814
18815
18816
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18814

def computation_based_metric_spec
  @computation_based_metric_spec
end

#llm_based_metric_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricLlmBasedMetricSpec

Specification for an LLM based metric. Corresponds to the JSON property llmBasedMetricSpec



18819
18820
18821
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18819

def llm_based_metric_spec
  @llm_based_metric_spec
end

#metricString

Required. The name of the metric. Corresponds to the JSON property metric

Returns:

  • (String)


18824
18825
18826
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18824

def metric
  @metric
end

#metric_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Metric

The metric used for running evaluations. Corresponds to the JSON property metricConfig



18829
18830
18831
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18829

def metric_config
  @metric_config
end

#metric_resource_nameString

Optional. The resource name of the metric definition. Corresponds to the JSON property metricResourceName

Returns:

  • (String)


18834
18835
18836
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18834

def metric_resource_name
  @metric_resource_name
end

#predefined_metric_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricPredefinedMetricSpec

Specification for a pre-defined metric. Corresponds to the JSON property predefinedMetricSpec



18839
18840
18841
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18839

def predefined_metric_spec
  @predefined_metric_spec
end

#rubric_based_metric_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricBasedMetricSpec

Specification for a metric that is based on rubrics. Corresponds to the JSON property rubricBasedMetricSpec



18844
18845
18846
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18844

def rubric_based_metric_spec
  @rubric_based_metric_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18851
18852
18853
18854
18855
18856
18857
18858
18859
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18851

def update!(**args)
  @computation_based_metric_spec = args[:computation_based_metric_spec] if args.key?(:computation_based_metric_spec)
  @llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec)
  @metric = args[:metric] if args.key?(:metric)
  @metric_config = args[:metric_config] if args.key?(:metric_config)
  @metric_resource_name = args[:metric_resource_name] if args.key?(:metric_resource_name)
  @predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec)
  @rubric_based_metric_spec = args[:rubric_based_metric_spec] if args.key?(:rubric_based_metric_spec)
end