Skip to main content

evaluation_runs

Creates, updates, deletes, gets or lists an evaluation_runs resource.

Overview

Nameevaluation_runs
TypeResource
Idgoogle.aiplatform.evaluation_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the EvaluationRun. This is a unique identifier. Format: projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}
completionTimestring (google-datetime)Output only. Time when the evaluation run was completed.
createTimestring (google-datetime)Output only. Time when the evaluation run was created.
dataSourceobjectRequired. The data source for the evaluation run. (id: GoogleCloudAiplatformV1EvaluationRunDataSource)
displayNamestringRequired. The display name of the Evaluation Run.
errorobjectThe Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. (id: GoogleRpcStatus)
evaluationConfigobjectRequired. The configuration used for the evaluation. (id: GoogleCloudAiplatformV1EvaluationRunEvaluationConfig)
evaluationResultsobjectOutput only. The results of the evaluation run. Only populated when the evaluation run's state is SUCCEEDED. (id: GoogleCloudAiplatformV1EvaluationResults)
evaluationSetSnapshotstringOutput only. The specific evaluation set of the evaluation run. For runs with an evaluation set input, this will be that same set. For runs with BigQuery input, it's the sampled BigQuery dataset.
inferenceConfigsobjectOptional. The candidate to inference config map for the evaluation run. The candidate can be up to 128 characters long and can consist of any UTF-8 characters.
labelsobjectOptional. Labels for the evaluation run.
metadataanyOptional. Metadata about the evaluation run, can be used by the caller to store additional tracking information about the evaluation run.
statestringOutput only. The state of the evaluation run.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, evaluationRunsIdGets an Evaluation Run.
listselectprojectsId, locationsIdorderBy, pageToken, filter, pageSizeLists Evaluation Runs.
createinsertprojectsId, locationsIdCreates an Evaluation Run.
deletedeleteprojectsId, locationsId, evaluationRunsIdDeletes an Evaluation Run.
cancelexecprojectsId, locationsId, evaluationRunsIdCancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run can be checked via GetEvaluationRun.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
evaluationRunsIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets an Evaluation Run.

SELECT
name,
completionTime,
createTime,
dataSource,
displayName,
error,
evaluationConfig,
evaluationResults,
evaluationSetSnapshot,
inferenceConfigs,
labels,
metadata,
state
FROM google.aiplatform.evaluation_runs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND evaluationRunsId = '{{ evaluationRunsId }}' -- required
;

INSERT examples

Creates an Evaluation Run.

INSERT INTO google.aiplatform.evaluation_runs (
data__inferenceConfigs,
data__evaluationConfig,
data__labels,
data__displayName,
data__name,
data__dataSource,
data__metadata,
projectsId,
locationsId
)
SELECT
'{{ inferenceConfigs }}',
'{{ evaluationConfig }}',
'{{ labels }}',
'{{ displayName }}',
'{{ name }}',
'{{ dataSource }}',
'{{ metadata }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
completionTime,
createTime,
dataSource,
displayName,
error,
evaluationConfig,
evaluationResults,
evaluationSetSnapshot,
inferenceConfigs,
labels,
metadata,
state
;

DELETE examples

Deletes an Evaluation Run.

DELETE FROM google.aiplatform.evaluation_runs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND evaluationRunsId = '{{ evaluationRunsId }}' --required
;

Lifecycle Methods

Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run can be checked via GetEvaluationRun.

EXEC google.aiplatform.evaluation_runs.cancel 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@evaluationRunsId='{{ evaluationRunsId }}' --required
;