0.9.0 (latest) 0.8.3 0.7.2 0.6.3 0.5.7 0.4.2 0.3.1 0.2.0 0.1.14

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class Evaluation.

Describes an evaluation between a machine learning model's predictions and
ground truth labels. Created when an [EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob) runs successfully.

Generated from protobuf message `google.cloud.datalabeling.v1beta1.Evaluation`

## Namespace

Google \\ Cloud \\ DataLabeling \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Resource name of an evaluation. The name has the following format: "projects/<var translate="no">{project_id}</var>/datasets/<var translate="no">{dataset_id}</var>/evaluations/<var translate="no">{evaluation_id</var>}' |
| `↳ config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationConfig` Output only. Options used in the evaluation job that created this evaluation. |
| `↳ evaluation_job_run_time` | `Google\Protobuf\Timestamp` Output only. Timestamp for when the evaluation job that created this evaluation ran. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. Timestamp for when this evaluation was created. |
| `↳ evaluation_metrics` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationMetrics` Output only. Metrics comparing predictions to ground truth labels. |
| `↳ annotation_type` | `int` Output only. Type of task that the model version being evaluated performs, as defined in the [evaluationJobConfig.inputConfig.annotationType](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJobConfig#_Google_Cloud_DataLabeling_V1beta1_EvaluationJobConfig__getInputConfig__) field of the evaluation job that created this evaluation. |
| `↳ evaluated_item_count` | `int|string` 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. |

### getName

Output only. Resource name of an evaluation. The name has the following
format:
"projects/<var translate="no">{project_id}</var>/datasets/<var translate="no">{dataset_id}</var>/evaluations/<var translate="no">{evaluation_id</var>}'

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Output only. Resource name of an evaluation. The name has the following
format:
"projects/<var translate="no">{project_id}</var>/datasets/<var translate="no">{dataset_id}</var>/evaluations/<var translate="no">{evaluation_id</var>}'

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfig

Output only. Options used in the evaluation job that created this
evaluation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationConfig|null` |   |

### hasConfig

### clearConfig

### setConfig

Output only. Options used in the evaluation job that created this
evaluation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEvaluationJobRunTime

Output only. Timestamp for when the evaluation job that created this
evaluation ran.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasEvaluationJobRunTime

### clearEvaluationJobRunTime

### setEvaluationJobRunTime

Output only. Timestamp for when the evaluation job that created this
evaluation ran.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. Timestamp for when this evaluation was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Timestamp for when this evaluation was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEvaluationMetrics

Output only. Metrics comparing predictions to ground truth labels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationMetrics|null` |   |

### hasEvaluationMetrics

### clearEvaluationMetrics

### setEvaluationMetrics

Output only. Metrics comparing predictions to ground truth labels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationMetrics` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAnnotationType

Output only. Type of task that the model version being evaluated performs,
as defined in the
[evaluationJobConfig.inputConfig.annotationType](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJobConfig#_Google_Cloud_DataLabeling_V1beta1_EvaluationJobConfig__getInputConfig__)
field of the evaluation job that created this evaluation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AnnotationType](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.AnnotationType). |

### setAnnotationType

Output only. Type of task that the model version being evaluated performs,
as defined in the
[evaluationJobConfig.inputConfig.annotationType](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJobConfig#_Google_Cloud_DataLabeling_V1beta1_EvaluationJobConfig__getInputConfig__)
field of the evaluation job that created this evaluation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AnnotationType](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.AnnotationType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEvaluatedItemCount

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setEvaluatedItemCount

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |