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 \ PrCurveMethods
__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) 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 and precision_at1. |
↳ 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 and precision_at5. |
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) 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) 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 and precision_at1.
Returns | |
---|---|
Type | Description |
float |
setF1ScoreAt1
The harmonic mean of recall_at1 and precision_at1.
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 and precision_at5.
Returns | |
---|---|
Type | Description |
float |
setF1ScoreAt5
The harmonic mean of recall_at5 and precision_at5.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |