Skip to main content

evaluations

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

Overview

Nameevaluations
TypeResource
Idgoogle.datalabeling.evaluations

Fields

The following fields are returned by SELECT queries:

Successful response

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.
configobjectOutput only. Options used in the evaluation job that created this evaluation. (id: GoogleCloudDatalabelingV1beta1EvaluationConfig)
createTimestring (google-datetime)Output only. Timestamp for when this evaluation was created.
evaluatedItemCountstring (int64)Output 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.
evaluationJobRunTimestring (google-datetime)Output only. Timestamp for when the evaluation job that created this evaluation ran.
evaluationMetricsobjectOutput only. Metrics comparing predictions to ground truth labels. (id: GoogleCloudDatalabelingV1beta1EvaluationMetrics)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_datasets_evaluations_getselectprojectsId, datasetsId, evaluationsId Gets an evaluation by resource name (to search, use projects.evaluations.search).
projects_datasets_evaluations_example_comparisons_searchexecprojectsId, datasetsId, evaluationsIdSearches example comparisons from an evaluation. The return format is a list of example comparisons that show ground truth and prediction(s) for a single input. Search by providing an evaluation ID.
projects_evaluations_searchexecprojectsIdfilter, pageSize, pageTokenSearches evaluations within a project.

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
datasetsIdstring
evaluationsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

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 projectsId = '{{ projectsId }}' -- required
AND datasetsId = '{{ datasetsId }}' -- required
AND evaluationsId = '{{ evaluationsId }}' -- required;

Lifecycle Methods

Searches example comparisons from an evaluation. The return format is a list of example comparisons that show ground truth and prediction(s) for a single input. Search by providing an evaluation ID.

EXEC google.datalabeling.evaluations.projects_datasets_evaluations_example_comparisons_search 
@projectsId='{{ projectsId }}' --required,
@datasetsId='{{ datasetsId }}' --required,
@evaluationsId='{{ evaluationsId }}' --required
@@json=
'{
"pageSize": {{ pageSize }},
"pageToken": "{{ pageToken }}"
}';