# Google Cloud Datalabeling V1beta1 Client - Class ConfidenceMetricsEntry (0.7.2)

0.7.2 (latest) 0.7.1 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 ConfidenceMetricsEntry.

Generated from protobuf message `google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry`

## Namespace

Google \\ Cloud \\ DataLabeling \\ V1beta1 \\ PrCurve

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ confidence_threshold` | `float` Threshold used for this entry. For classification tasks, this is a classification threshold: a predicted label is categorized as positive or negative (in the context of this point on the PR curve) based on whether the label's score meets this threshold. For image object detection (bounding box) tasks, this is the [intersection-over-union (IOU)](https://docs.cloud.google.com/vision/automl/object-detection/docs/evaluate#intersection-over-union) threshold for the context of this point on the PR curve. |
| `↳ recall` | `float` Recall value. |
| `↳ precision` | `float` Precision value. |
| `↳ f1_score` | `float` Harmonic mean of recall and precision. |
| `↳ recall_at1` | `float` Recall value for entries with label that has highest score. |
| `↳ precision_at1` | `float` Precision value for entries with label that has highest score. |
| `↳ f1_score_at1` | `float` The harmonic mean of [recall_at1](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getRecallAt1__) and [precision_at1](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getPrecisionAt1__). |
| `↳ recall_at5` | `float` Recall value for entries with label that has highest 5 scores. |
| `↳ precision_at5` | `float` Precision value for entries with label that has highest 5 scores. |
| `↳ f1_score_at5` | `float` The harmonic mean of [recall_at5](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getRecallAt5__) and [precision_at5](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getPrecisionAt5__). |

### getConfidenceThreshold

Threshold used for this entry.

For classification tasks, this is a classification threshold: a
predicted label is categorized as positive or negative (in the context of
this point on the PR curve) based on whether the label's score meets this
threshold.
For image object detection (bounding box) tasks, this is the
[intersection-over-union
(IOU)](https://docs.cloud.google.com/vision/automl/object-detection/docs/evaluate#intersection-over-union)
threshold for the context of this point on the PR curve.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setConfidenceThreshold

Threshold used for this entry.

For classification tasks, this is a classification threshold: a
predicted label is categorized as positive or negative (in the context of
this point on the PR curve) based on whether the label's score meets this
threshold.
For image object detection (bounding box) tasks, this is the
[intersection-over-union
(IOU)](https://docs.cloud.google.com/vision/automl/object-detection/docs/evaluate#intersection-over-union)
threshold for the context of this point on the PR curve.

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

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

### getRecall

Recall value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setRecall

Recall value.

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

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

### getPrecision

Precision value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setPrecision

Precision value.

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

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

### getF1Score

Harmonic mean of recall and precision.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setF1Score

Harmonic mean of recall and precision.

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

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

### getRecallAt1

Recall value for entries with label that has highest score.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setRecallAt1

Recall value for entries with label that has highest score.

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

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

### getPrecisionAt1

Precision value for entries with label that has highest score.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setPrecisionAt1

Precision value for entries with label that has highest score.

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

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

### getF1ScoreAt1

The harmonic mean of [recall_at1](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getRecallAt1__) and [precision_at1](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getPrecisionAt1__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setF1ScoreAt1

The harmonic mean of [recall_at1](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getRecallAt1__) and [precision_at1](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getPrecisionAt1__).

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

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

### getRecallAt5

Recall value for entries with label that has highest 5 scores.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setRecallAt5

Recall value for entries with label that has highest 5 scores.

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

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

### getPrecisionAt5

Precision value for entries with label that has highest 5 scores.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setPrecisionAt5

Precision value for entries with label that has highest 5 scores.

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

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

### getF1ScoreAt5

The harmonic mean of [recall_at5](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getRecallAt5__) and [precision_at5](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getPrecisionAt5__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setF1ScoreAt5

The harmonic mean of [recall_at5](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getRecallAt5__) and [precision_at5](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PrCurve.ConfidenceMetricsEntry#_Google_Cloud_DataLabeling_V1beta1_PrCurve_ConfidenceMetricsEntry__getPrecisionAt5__).

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

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