REST Resource: projects.locations.models.evaluations.slices

Resource: ModelEvaluationSlice

A collection of metrics calculated by comparing Model's predictions on a slice of the test data against ground truth annotations.

Fields
name string

Output only. The resource name of the ModelEvaluationSlice.

slice object (Slice)

Output only. The slice of the test data that is used to evaluate the Model.

metricsSchemaUri string

Output 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.

metrics value (Value format)

Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in metricsSchemaUri

createTime string (Timestamp format)

Output only. timestamp when this ModelEvaluationSlice was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

modelExplanation object (ModelExplanation)

Output only. Aggregated explanation metrics for the Model's prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.

JSON representation
{
  "name": string,
  "slice": {
    object (Slice)
  },
  "metricsSchemaUri": string,
  "metrics": value,
  "createTime": string,
  "modelExplanation": {
    object (ModelExplanation)
  }
}

Slice

Definition of a slice.

Fields
dimension string

Output only. The dimension of the slice. Well-known dimensions are: * annotationSpec: This slice is on the test data that has either ground truth or prediction with AnnotationSpec.display_name equals to value. * slice: This slice is a user customized slice defined by its SliceSpec.

value string

Output only. The value of the dimension in this slice.

sliceSpec object (SliceSpec)

Output only. Specification for how the data was sliced.

JSON representation
{
  "dimension": string,
  "value": string,
  "sliceSpec": {
    object (SliceSpec)
  }
}

Methods

batchImport

Imports a list of externally generated EvaluatedAnnotations.

get

Gets a ModelEvaluationSlice.

list

Lists ModelEvaluationSlices in a ModelEvaluation.