# AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.1 0.12.0 0.11.1 0.10.1 0.9.0 0.8.1 0.7.2 0.6.0 0.5.0 0.4.0 0.3.5 Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #confidence_threshold

    def confidence_threshold() -> ::Float

**Returns**

- (::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)\](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
  threshold for the context of this point on the PR curve.

### #confidence_threshold=

    def confidence_threshold=(value) -> ::Float

**Parameter**

- **value** (::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)\](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
  threshold for the context of this point on the PR curve.
**Returns**

- (::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)\](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
  threshold for the context of this point on the PR curve.

### #f1_score

    def f1_score() -> ::Float

**Returns**

- (::Float) --- Harmonic mean of recall and precision.

### #f1_score=

    def f1_score=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Harmonic mean of recall and precision.
**Returns**

- (::Float) --- Harmonic mean of recall and precision.

### #f1_score_at1

    def f1_score_at1() -> ::Float

**Returns**

- (::Float) --- The harmonic mean of [recall_at1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_recall_at1_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#recall_at1 (method)") and [precision_at1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_precision_at1_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#precision_at1 (method)").

### #f1_score_at1=

    def f1_score_at1=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The harmonic mean of [recall_at1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_recall_at1_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#recall_at1 (method)") and [precision_at1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_precision_at1_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#precision_at1 (method)").
**Returns**

- (::Float) --- The harmonic mean of [recall_at1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_recall_at1_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#recall_at1 (method)") and [precision_at1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_precision_at1_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#precision_at1 (method)").

### #f1_score_at5

    def f1_score_at5() -> ::Float

**Returns**

- (::Float) --- The harmonic mean of [recall_at5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_recall_at5_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#recall_at5 (method)") and [precision_at5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_precision_at5_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#precision_at5 (method)").

### #f1_score_at5=

    def f1_score_at5=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The harmonic mean of [recall_at5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_recall_at5_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#recall_at5 (method)") and [precision_at5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_precision_at5_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#precision_at5 (method)").
**Returns**

- (::Float) --- The harmonic mean of [recall_at5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_recall_at5_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#recall_at5 (method)") and [precision_at5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-PrCurve-ConfidenceMetricsEntry#Google__Cloud__DataLabeling__V1beta1__PrCurve__ConfidenceMetricsEntry_precision_at5_instance_ "Google::Cloud::DataLabeling::V1beta1::PrCurve::ConfidenceMetricsEntry#precision_at5 (method)").

### #precision

    def precision() -> ::Float

**Returns**

- (::Float) --- Precision value.

### #precision=

    def precision=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Precision value.
**Returns**

- (::Float) --- Precision value.

### #precision_at1

    def precision_at1() -> ::Float

**Returns**

- (::Float) --- Precision value for entries with label that has highest score.

### #precision_at1=

    def precision_at1=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Precision value for entries with label that has highest score.
**Returns**

- (::Float) --- Precision value for entries with label that has highest score.

### #precision_at5

    def precision_at5() -> ::Float

**Returns**

- (::Float) --- Precision value for entries with label that has highest 5 scores.

### #precision_at5=

    def precision_at5=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Precision value for entries with label that has highest 5 scores.
**Returns**

- (::Float) --- Precision value for entries with label that has highest 5 scores.

### #recall

    def recall() -> ::Float

**Returns**

- (::Float) --- Recall value.

### #recall=

    def recall=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Recall value.
**Returns**

- (::Float) --- Recall value.

### #recall_at1

    def recall_at1() -> ::Float

**Returns**

- (::Float) --- Recall value for entries with label that has highest score.

### #recall_at1=

    def recall_at1=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Recall value for entries with label that has highest score.
**Returns**

- (::Float) --- Recall value for entries with label that has highest score.

### #recall_at5

    def recall_at5() -> ::Float

**Returns**

- (::Float) --- Recall value for entries with label that has highest 5 scores.

### #recall_at5=

    def recall_at5=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Recall value for entries with label that has highest 5 scores.
**Returns**

- (::Float) --- Recall value for entries with label that has highest 5 scores.