## Resource: Evaluation

An evaluation of a ProcessorVersion's performance.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "documentCounters": { object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions.evaluations#Counters`) }, "allEntitiesMetrics": { object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/MultiConfidenceMetrics`) }, "entityMetrics": { string: { object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/MultiConfidenceMetrics`) }, ... }, "kmsKeyName": string, "kmsKeyVersionName": string, "revisions": [ { object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions.evaluations#EvaluationRevision`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time that the evaluation was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `documentCounters` | ``object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions.evaluations#Counters`)`` Counters for the documents used in the evaluation. |
| `allEntitiesMetrics` | ``object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/MultiConfidenceMetrics`)`` Metrics for all the entities in aggregate. |
| `entityMetrics` | ``map (key: string, value: object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/MultiConfidenceMetrics`))`` Metrics across confidence levels, for different entities. |
| `kmsKeyName` | `string` The KMS key name used for encryption. |
| `kmsKeyVersionName` | `string` The KMS key version with which data is encrypted. |
| `revisions[]` | ``object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions.evaluations#EvaluationRevision`)`` Contains all revisions of the evaluation, excluding the latest one. |

## Counters

Evaluation counters for the documents that were used.

| JSON representation |
|---|
| ``` { "inputDocumentsCount": integer, "invalidDocumentsCount": integer, "failedDocumentsCount": integer, "evaluatedDocumentsCount": integer } ``` |

| Fields ||
|---|---|
| `inputDocumentsCount` | `integer` How many documents were sent for evaluation. |
| `invalidDocumentsCount` | `integer` How many documents were not included in the evaluation as they didn't pass validation. |
| `failedDocumentsCount` | `integer` How many documents were not included in the evaluation as Document AI failed to process them. |
| `evaluatedDocumentsCount` | `integer` How many documents were used in the evaluation. |

## EvaluationRevision

A revision of the evaluation.

| JSON representation |
|---|
| ``` { "revisionId": string, "documentCounters": { object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions.evaluations#Counters`) }, "allEntitiesMetrics": { object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/MultiConfidenceMetrics`) }, "entityMetrics": { string: { object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/MultiConfidenceMetrics`) }, ... } } ``` |

| Fields ||
|---|---|
| `revisionId` | `string` Output only. The revision ID of the evaluation. |
| `documentCounters` | ``object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions.evaluations#Counters`)`` Output only. Counters for the documents used in the evaluation. |
| `allEntitiesMetrics` | ``object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/MultiConfidenceMetrics`)`` Output only. Metrics for all the entities in aggregate. |
| `entityMetrics` | ``map (key: string, value: object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/MultiConfidenceMetrics`))`` Output only. Metrics across confidence levels, for different entities. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions.evaluations/get` | Retrieves a specific evaluation. |
| ### `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions.evaluations/list` | Retrieves a set of evaluations for a given processor version. |