Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationResult

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

Evaluation result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationResult

Returns a new instance of GoogleCloudAiplatformV1EvaluationResult.



9414
9415
9416
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9414

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

Instance Attribute Details

#candidate_resultsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CandidateResult>

Optional. The results for the metric. Corresponds to the JSON property candidateResults



9385
9386
9387
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9385

def candidate_results
  @candidate_results
end

#evaluation_requestString

Required. The request item that was evaluated. Format: projects/project/ locations/location/evaluationItems/evaluation_item Corresponds to the JSON property evaluationRequest

Returns:

  • (String)


9391
9392
9393
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9391

def evaluation_request
  @evaluation_request
end

#evaluation_runString

Required. The evaluation run that was used to generate the result. Format: projects/project/locations/location/evaluationRuns/evaluation_run Corresponds to the JSON property evaluationRun

Returns:

  • (String)


9397
9398
9399
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9397

def evaluation_run
  @evaluation_run
end

#metadataObject

Optional. Metadata about the evaluation result. Corresponds to the JSON property metadata

Returns:

  • (Object)


9402
9403
9404
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9402

def 
  @metadata
end

#metricString

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

Returns:

  • (String)


9407
9408
9409
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9407

def metric
  @metric
end

#requestGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRequest

Single evaluation request. Corresponds to the JSON property request



9412
9413
9414
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9412

def request
  @request
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9419
9420
9421
9422
9423
9424
9425
9426
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9419

def update!(**args)
  @candidate_results = args[:candidate_results] if args.key?(:candidate_results)
  @evaluation_request = args[:evaluation_request] if args.key?(:evaluation_request)
  @evaluation_run = args[:evaluation_run] if args.key?(:evaluation_run)
  @metadata = args[:metadata] if args.key?(:metadata)
  @metric = args[:metric] if args.key?(:metric)
  @request = args[:request] if args.key?(:request)
end