Cloud AutoML V1 Client - Class ConfidenceMetricsEntry (2.0.0)

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

Namespace

Google \ Cloud \ AutoMl \ V1 \ TextExtractionEvaluationMetrics

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var float
Returns
Type Description
$this

getRecall

Output only. Recall under the given confidence threshold.

Returns
Type Description
float

setRecall

Output only. Recall under the given confidence threshold.

Parameter
Name Description
var float
Returns
Type Description
$this

getPrecision

Output only. Precision under the given confidence threshold.

Returns
Type Description
float

setPrecision

Output only. Precision under the given confidence threshold.

Parameter
Name Description
var float
Returns
Type Description
$this

getF1Score

Output only. The harmonic mean of recall and precision.

Returns
Type Description
float

setF1Score

Output only. The harmonic mean of recall and precision.

Parameter
Name Description
var float
Returns
Type Description
$this