Google Cloud Document Ai V1 Client - Class MultiConfidenceMetrics (2.0.0-RC1)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class MultiConfidenceMetrics.

Metrics across multiple confidence levels.

Generated from protobuf message google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Evaluation

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ confidence_level_metrics array<Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics>

Metrics across confidence levels with fuzzy matching enabled.

↳ confidence_level_metrics_exact array<Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics>

Metrics across confidence levels with only exact matching.

↳ auprc float

The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds.

↳ estimated_calibration_error float

The Estimated Calibration Error (ECE) of the confidence of the predicted entities.

↳ auprc_exact float

The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.

↳ estimated_calibration_error_exact float

The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only.

↳ metrics_type int

The metrics type for the label.

getConfidenceLevelMetrics

Metrics across confidence levels with fuzzy matching enabled.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setConfidenceLevelMetrics

Metrics across confidence levels with fuzzy matching enabled.

Parameter
Name Description
var array<Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics>
Returns
Type Description
$this

getConfidenceLevelMetricsExact

Metrics across confidence levels with only exact matching.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setConfidenceLevelMetricsExact

Metrics across confidence levels with only exact matching.

Parameter
Name Description
var array<Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics>
Returns
Type Description
$this

getAuprc

The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds.

Returns
Type Description
float

setAuprc

The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds.

Parameter
Name Description
var float
Returns
Type Description
$this

getEstimatedCalibrationError

The Estimated Calibration Error (ECE) of the confidence of the predicted entities.

Returns
Type Description
float

setEstimatedCalibrationError

The Estimated Calibration Error (ECE) of the confidence of the predicted entities.

Parameter
Name Description
var float
Returns
Type Description
$this

getAuprcExact

The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.

Returns
Type Description
float

setAuprcExact

The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.

Parameter
Name Description
var float
Returns
Type Description
$this

getEstimatedCalibrationErrorExact

The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only.

Returns
Type Description
float

setEstimatedCalibrationErrorExact

The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only.

Parameter
Name Description
var float
Returns
Type Description
$this

getMetricsType

The metrics type for the label.

Returns
Type Description
int

setMetricsType

The metrics type for the label.

Parameter
Name Description
var int
Returns
Type Description
$this