Skip to main content

slices

Creates, updates, deletes, gets or lists a slices resource.

Overview

Nameslices
TypeResource
Idgoogle.aiplatform.slices

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the ModelEvaluationSlice.
createTimestringOutput only. Timestamp when this ModelEvaluationSlice was created.
metricsanyOutput only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in metrics_schema_uri
metricsSchemaUristringOutput only. Points to a YAML file stored on Google Cloud Storage describing the metrics of this ModelEvaluationSlice. The schema is defined as an OpenAPI 3.0.2 Schema Object.
modelExplanationobjectAggregated explanation metrics for a Model over a set of instances.
sliceobjectDefinition of a slice.

Methods

NameAccessible byRequired ParamsDescription
getSELECTevaluationsId, locationsId, modelsId, projectsId, slicesIdGets a ModelEvaluationSlice.
listSELECTevaluationsId, locationsId, modelsId, projectsIdLists ModelEvaluationSlices in a ModelEvaluation.
batch_importEXECevaluationsId, locationsId, modelsId, projectsId, slicesIdImports a list of externally generated EvaluatedAnnotations.

SELECT examples

Lists ModelEvaluationSlices in a ModelEvaluation.

SELECT
name,
createTime,
metrics,
metricsSchemaUri,
modelExplanation,
slice
FROM google.aiplatform.slices
WHERE evaluationsId = '{{ evaluationsId }}'
AND locationsId = '{{ locationsId }}'
AND modelsId = '{{ modelsId }}'
AND projectsId = '{{ projectsId }}';