Google Cloud Datalabeling V1beta1 Client - Class ConfidenceMetricsEntry (0.1.14)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var float
Returns
TypeDescription
$this

getRecall

Recall value.

Returns
TypeDescription
float

setRecall

Recall value.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getPrecision

Precision value.

Returns
TypeDescription
float

setPrecision

Precision value.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getF1Score

Harmonic mean of recall and precision.

Returns
TypeDescription
float

setF1Score

Harmonic mean of recall and precision.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getRecallAt1

Recall value for entries with label that has highest score.

Returns
TypeDescription
float

setRecallAt1

Recall value for entries with label that has highest score.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getPrecisionAt1

Precision value for entries with label that has highest score.

Returns
TypeDescription
float

setPrecisionAt1

Precision value for entries with label that has highest score.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getF1ScoreAt1

The harmonic mean of recall_at1 and precision_at1.

Returns
TypeDescription
float

setF1ScoreAt1

The harmonic mean of recall_at1 and precision_at1.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getRecallAt5

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

Returns
TypeDescription
float

setRecallAt5

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

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getPrecisionAt5

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

Returns
TypeDescription
float

setPrecisionAt5

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

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getF1ScoreAt5

The harmonic mean of recall_at5 and precision_at5.

Returns
TypeDescription
float

setF1ScoreAt5

The harmonic mean of recall_at5 and precision_at5.

Parameter
NameDescription
var float
Returns
TypeDescription
$this