Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CandidateResult

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

Result for a single candidate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CandidateResult

Returns a new instance of GoogleCloudAiplatformV1beta1CandidateResult.



10586
10587
10588
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10586

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

Instance Attribute Details

#additional_resultsObject

Optional. Additional results for the metric. Corresponds to the JSON property additionalResults

Returns:

  • (Object)


10558
10559
10560
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10558

def additional_results
  @additional_results
end

#candidateString

Required. The candidate that is being evaluated. The value is the same as the candidate name in the EvaluationRequest. Corresponds to the JSON property candidate

Returns:

  • (String)


10564
10565
10566
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10564

def candidate
  @candidate
end

#explanationString

Optional. The explanation for the metric. Corresponds to the JSON property explanation

Returns:

  • (String)


10569
10570
10571
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10569

def explanation
  @explanation
end

#metricString

Required. The metric that was evaluated. Corresponds to the JSON property metric

Returns:

  • (String)


10574
10575
10576
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10574

def metric
  @metric
end

#rubric_verdictsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricVerdict>

Optional. The rubric verdicts for the metric. Corresponds to the JSON property rubricVerdicts



10579
10580
10581
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10579

def rubric_verdicts
  @rubric_verdicts
end

#scoreFloat

Optional. The score for the metric. Corresponds to the JSON property score

Returns:

  • (Float)


10584
10585
10586
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10584

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10591
10592
10593
10594
10595
10596
10597
10598
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10591

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