Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CandidateResult
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CandidateResult
- 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
-
#additional_results ⇒ Object
Optional.
-
#candidate ⇒ String
Required.
-
#explanation ⇒ String
Optional.
-
#metric ⇒ String
Required.
-
#rubric_verdicts ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricVerdict>
Optional.
-
#score ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CandidateResult
constructor
A new instance of GoogleCloudAiplatformV1beta1CandidateResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CandidateResult
Returns a new instance of GoogleCloudAiplatformV1beta1CandidateResult.
4441 4442 4443 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4441 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_results ⇒ Object
Optional. Additional results for the metric.
Corresponds to the JSON property additionalResults
4413 4414 4415 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4413 def additional_results @additional_results end |
#candidate ⇒ String
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
4419 4420 4421 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4419 def candidate @candidate end |
#explanation ⇒ String
Optional. The explanation for the metric.
Corresponds to the JSON property explanation
4424 4425 4426 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4424 def explanation @explanation end |
#metric ⇒ String
Required. The metric that was evaluated.
Corresponds to the JSON property metric
4429 4430 4431 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4429 def metric @metric end |
#rubric_verdicts ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricVerdict>
Optional. The rubric verdicts for the metric.
Corresponds to the JSON property rubricVerdicts
4434 4435 4436 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4434 def rubric_verdicts @rubric_verdicts end |
#score ⇒ Float
Optional. The score for the metric.
Corresponds to the JSON property score
4439 4440 4441 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4439 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4446 4447 4448 4449 4450 4451 4452 4453 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4446 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 |