Cloud AutoML V1 Client - Class ConfidenceMetricsEntry (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1 Client class ConfidenceMetricsEntry.

Metrics for a single confidence threshold.

Generated from protobuf message google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ confidence_threshold float

Output only. The confidence threshold value used to compute the metrics. Only annotations with score of at least this threshold are considered to be ones the model would return.

↳ recall float

Output only. Recall under the given confidence threshold.

↳ precision float

Output only. Precision under the given confidence threshold.

↳ f1_score float

Output only. The harmonic mean of recall and precision.

getConfidenceThreshold

Output only. The confidence threshold value used to compute the metrics.

Only annotations with score of at least this threshold are considered to be ones the model would return.

Returns
TypeDescription
float

setConfidenceThreshold

Output only. The confidence threshold value used to compute the metrics.

Only annotations with score of at least this threshold are considered to be ones the model would return.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getRecall

Output only. Recall under the given confidence threshold.

Returns
TypeDescription
float

setRecall

Output only. Recall under the given confidence threshold.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getPrecision

Output only. Precision under the given confidence threshold.

Returns
TypeDescription
float

setPrecision

Output only. Precision under the given confidence threshold.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getF1Score

Output only. The harmonic mean of recall and precision.

Returns
TypeDescription
float

setF1Score

Output only. The harmonic mean of recall and precision.

Parameter
NameDescription
var float
Returns
TypeDescription
$this