Skip to main content

evaluation_sets

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

Overview

Nameevaluation_sets
TypeResource
Idgoogle.aiplatform.evaluation_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the EvaluationSet. Format: projects/{project}/locations/{location}/evaluationSets/{evaluation_set}
createTimestring (google-datetime)Output only. Timestamp when this item was created.
displayNamestringRequired. The display name of the EvaluationSet.
evaluationItemsarrayRequired. The EvaluationItems that are part of this dataset.
metadataanyOptional. Metadata for the EvaluationSet.
updateTimestring (google-datetime)Output only. Timestamp when this item was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, evaluationSetsIdGets an Evaluation Set.
listselectprojectsId, locationsIdpageToken, pageSize, filter, orderByLists Evaluation Sets.
createinsertprojectsId, locationsIdCreates an Evaluation Set.
patchupdateprojectsId, locationsId, evaluationSetsIdupdateMaskUpdates an Evaluation Set.
deletedeleteprojectsId, locationsId, evaluationSetsIdDeletes an Evaluation Set.

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
evaluationSetsIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets an Evaluation Set.

SELECT
name,
createTime,
displayName,
evaluationItems,
metadata,
updateTime
FROM google.aiplatform.evaluation_sets
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND evaluationSetsId = '{{ evaluationSetsId }}' -- required
;

INSERT examples

Creates an Evaluation Set.

INSERT INTO google.aiplatform.evaluation_sets (
data__evaluationItems,
data__name,
data__metadata,
data__displayName,
projectsId,
locationsId
)
SELECT
'{{ evaluationItems }}',
'{{ name }}',
'{{ metadata }}',
'{{ displayName }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
createTime,
displayName,
evaluationItems,
metadata,
updateTime
;

UPDATE examples

Updates an Evaluation Set.

UPDATE google.aiplatform.evaluation_sets
SET
data__evaluationItems = '{{ evaluationItems }}',
data__name = '{{ name }}',
data__metadata = '{{ metadata }}',
data__displayName = '{{ displayName }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND evaluationSetsId = '{{ evaluationSetsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
displayName,
evaluationItems,
metadata,
updateTime;

DELETE examples

Deletes an Evaluation Set.

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