Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LossAnalysisConfig

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

Configuration for the loss analysis job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1LossAnalysisConfig

Returns a new instance of GoogleCloudAiplatformV1beta1LossAnalysisConfig.



25063
25064
25065
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25063

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

Instance Attribute Details

#candidateString

Required. The candidate model/agent to analyze (e.g., "gemini-3.0-pro"). This targets the specific CandidateResult within the EvaluationResult. Corresponds to the JSON property candidate

Returns:

  • (String)


25054
25055
25056
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25054

def candidate
  @candidate
end

#metricString

Required. The metric to analyze (e.g., "tool_use_quality"). This filters the EvaluationItems in the EvalSet to only those where EvaluationResult.metric matches this value. Corresponds to the JSON property metric

Returns:

  • (String)


25061
25062
25063
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25061

def metric
  @metric
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25068
25069
25070
25071
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25068

def update!(**args)
  @candidate = args[:candidate] if args.key?(:candidate)
  @metric = args[:metric] if args.key?(:metric)
end