Skip to main content

evaluations

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

Overview

Nameevaluations
TypeResource
Idgoogle.datalabeling.evaluations

Fields

NameDatatypeDescription
namestringOutput only. Resource name of an evaluation. The name has the following format: "projects/{project_id}/datasets/{dataset_id}/evaluations/ {evaluation_id}'
annotationTypestringOutput only. Type of task that the model version being evaluated performs, as defined in the evaluationJobConfig.inputConfig.annotationType field of the evaluation job that created this evaluation.
configobjectConfiguration details used for calculating evaluation metrics and creating an Evaluation.
createTimestringOutput only. Timestamp for when this evaluation was created.
evaluatedItemCountstringOutput only. The number of items in the ground truth dataset that were used for this evaluation. Only populated when the evaulation is for certain AnnotationTypes.
evaluationJobRunTimestringOutput only. Timestamp for when the evaluation job that created this evaluation ran.
evaluationMetricsobject

Methods

NameAccessible byRequired ParamsDescription
projects_datasets_evaluations_getSELECTdatasetsId, evaluationsId, projectsIdGets an evaluation by resource name (to search, use projects.evaluations.search).
projects_evaluations_searchEXECprojectsIdSearches evaluations within a project.

SELECT examples

Gets an evaluation by resource name (to search, use projects.evaluations.search).

SELECT
name,
annotationType,
config,
createTime,
evaluatedItemCount,
evaluationJobRunTime,
evaluationMetrics
FROM google.datalabeling.evaluations
WHERE datasetsId = '{{ datasetsId }}'
AND evaluationsId = '{{ evaluationsId }}'
AND projectsId = '{{ projectsId }}';