Class Evaluation.MultiConfidenceMetrics.Builder (2.22.0)

public static final class Evaluation.MultiConfidenceMetrics.Builder extends GeneratedMessageV3.Builder<Evaluation.MultiConfidenceMetrics.Builder> implements Evaluation.MultiConfidenceMetricsOrBuilder

Metrics across multiple confidence levels.

Protobuf type google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllConfidenceLevelMetrics(Iterable<? extends Evaluation.ConfidenceLevelMetrics> values)

public Evaluation.MultiConfidenceMetrics.Builder addAllConfidenceLevelMetrics(Iterable<? extends Evaluation.ConfidenceLevelMetrics> values)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics>
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addAllConfidenceLevelMetricsExact(Iterable<? extends Evaluation.ConfidenceLevelMetrics> values)

public Evaluation.MultiConfidenceMetrics.Builder addAllConfidenceLevelMetricsExact(Iterable<? extends Evaluation.ConfidenceLevelMetrics> values)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics>
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addConfidenceLevelMetrics(Evaluation.ConfidenceLevelMetrics value)

public Evaluation.MultiConfidenceMetrics.Builder addConfidenceLevelMetrics(Evaluation.ConfidenceLevelMetrics value)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameter
NameDescription
valueEvaluation.ConfidenceLevelMetrics
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addConfidenceLevelMetrics(Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

public Evaluation.MultiConfidenceMetrics.Builder addConfidenceLevelMetrics(Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameter
NameDescription
builderForValueEvaluation.ConfidenceLevelMetrics.Builder
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addConfidenceLevelMetrics(int index, Evaluation.ConfidenceLevelMetrics value)

public Evaluation.MultiConfidenceMetrics.Builder addConfidenceLevelMetrics(int index, Evaluation.ConfidenceLevelMetrics value)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameters
NameDescription
indexint
valueEvaluation.ConfidenceLevelMetrics
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addConfidenceLevelMetrics(int index, Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

public Evaluation.MultiConfidenceMetrics.Builder addConfidenceLevelMetrics(int index, Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameters
NameDescription
indexint
builderForValueEvaluation.ConfidenceLevelMetrics.Builder
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addConfidenceLevelMetricsBuilder()

public Evaluation.ConfidenceLevelMetrics.Builder addConfidenceLevelMetricsBuilder()

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

addConfidenceLevelMetricsBuilder(int index)

public Evaluation.ConfidenceLevelMetrics.Builder addConfidenceLevelMetricsBuilder(int index)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

addConfidenceLevelMetricsExact(Evaluation.ConfidenceLevelMetrics value)

public Evaluation.MultiConfidenceMetrics.Builder addConfidenceLevelMetricsExact(Evaluation.ConfidenceLevelMetrics value)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameter
NameDescription
valueEvaluation.ConfidenceLevelMetrics
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addConfidenceLevelMetricsExact(Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

public Evaluation.MultiConfidenceMetrics.Builder addConfidenceLevelMetricsExact(Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameter
NameDescription
builderForValueEvaluation.ConfidenceLevelMetrics.Builder
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addConfidenceLevelMetricsExact(int index, Evaluation.ConfidenceLevelMetrics value)

public Evaluation.MultiConfidenceMetrics.Builder addConfidenceLevelMetricsExact(int index, Evaluation.ConfidenceLevelMetrics value)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameters
NameDescription
indexint
valueEvaluation.ConfidenceLevelMetrics
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addConfidenceLevelMetricsExact(int index, Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

public Evaluation.MultiConfidenceMetrics.Builder addConfidenceLevelMetricsExact(int index, Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameters
NameDescription
indexint
builderForValueEvaluation.ConfidenceLevelMetrics.Builder
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

addConfidenceLevelMetricsExactBuilder()

public Evaluation.ConfidenceLevelMetrics.Builder addConfidenceLevelMetricsExactBuilder()

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

addConfidenceLevelMetricsExactBuilder(int index)

public Evaluation.ConfidenceLevelMetrics.Builder addConfidenceLevelMetricsExactBuilder(int index)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Evaluation.MultiConfidenceMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides

build()

public Evaluation.MultiConfidenceMetrics build()
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics

buildPartial()

public Evaluation.MultiConfidenceMetrics buildPartial()
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics

clear()

public Evaluation.MultiConfidenceMetrics.Builder clear()
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides

clearAuprc()

public Evaluation.MultiConfidenceMetrics.Builder clearAuprc()

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

float auprc = 2;

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

clearAuprcExact()

public Evaluation.MultiConfidenceMetrics.Builder clearAuprcExact()

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

float auprc_exact = 5;

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

clearConfidenceLevelMetrics()

public Evaluation.MultiConfidenceMetrics.Builder clearConfidenceLevelMetrics()

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

clearConfidenceLevelMetricsExact()

public Evaluation.MultiConfidenceMetrics.Builder clearConfidenceLevelMetricsExact()

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

clearEstimatedCalibrationError()

public Evaluation.MultiConfidenceMetrics.Builder clearEstimatedCalibrationError()

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

float estimated_calibration_error = 3;

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

clearEstimatedCalibrationErrorExact()

public Evaluation.MultiConfidenceMetrics.Builder clearEstimatedCalibrationErrorExact()

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

float estimated_calibration_error_exact = 6;

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Evaluation.MultiConfidenceMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides

clearMetricsType()

public Evaluation.MultiConfidenceMetrics.Builder clearMetricsType()

The metrics type for the label.

.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7;

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Evaluation.MultiConfidenceMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides

clone()

public Evaluation.MultiConfidenceMetrics.Builder clone()
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides

getAuprc()

public float getAuprc()

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

float auprc = 2;

Returns
TypeDescription
float

The auprc.

getAuprcExact()

public float getAuprcExact()

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

float auprc_exact = 5;

Returns
TypeDescription
float

The auprcExact.

getConfidenceLevelMetrics(int index)

public Evaluation.ConfidenceLevelMetrics getConfidenceLevelMetrics(int index)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics

getConfidenceLevelMetricsBuilder(int index)

public Evaluation.ConfidenceLevelMetrics.Builder getConfidenceLevelMetricsBuilder(int index)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

getConfidenceLevelMetricsBuilderList()

public List<Evaluation.ConfidenceLevelMetrics.Builder> getConfidenceLevelMetricsBuilderList()

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Returns
TypeDescription
List<Builder>

getConfidenceLevelMetricsCount()

public int getConfidenceLevelMetricsCount()

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Returns
TypeDescription
int

getConfidenceLevelMetricsExact(int index)

public Evaluation.ConfidenceLevelMetrics getConfidenceLevelMetricsExact(int index)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics

getConfidenceLevelMetricsExactBuilder(int index)

public Evaluation.ConfidenceLevelMetrics.Builder getConfidenceLevelMetricsExactBuilder(int index)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

getConfidenceLevelMetricsExactBuilderList()

public List<Evaluation.ConfidenceLevelMetrics.Builder> getConfidenceLevelMetricsExactBuilderList()

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Returns
TypeDescription
List<Builder>

getConfidenceLevelMetricsExactCount()

public int getConfidenceLevelMetricsExactCount()

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Returns
TypeDescription
int

getConfidenceLevelMetricsExactList()

public List<Evaluation.ConfidenceLevelMetrics> getConfidenceLevelMetricsExactList()

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Returns
TypeDescription
List<ConfidenceLevelMetrics>

getConfidenceLevelMetricsExactOrBuilder(int index)

public Evaluation.ConfidenceLevelMetricsOrBuilder getConfidenceLevelMetricsExactOrBuilder(int index)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.ConfidenceLevelMetricsOrBuilder

getConfidenceLevelMetricsExactOrBuilderList()

public List<? extends Evaluation.ConfidenceLevelMetricsOrBuilder> getConfidenceLevelMetricsExactOrBuilderList()

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Returns
TypeDescription
List<? extends com.google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetricsOrBuilder>

getConfidenceLevelMetricsList()

public List<Evaluation.ConfidenceLevelMetrics> getConfidenceLevelMetricsList()

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Returns
TypeDescription
List<ConfidenceLevelMetrics>

getConfidenceLevelMetricsOrBuilder(int index)

public Evaluation.ConfidenceLevelMetricsOrBuilder getConfidenceLevelMetricsOrBuilder(int index)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.ConfidenceLevelMetricsOrBuilder

getConfidenceLevelMetricsOrBuilderList()

public List<? extends Evaluation.ConfidenceLevelMetricsOrBuilder> getConfidenceLevelMetricsOrBuilderList()

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Returns
TypeDescription
List<? extends com.google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetricsOrBuilder>

getDefaultInstanceForType()

public Evaluation.MultiConfidenceMetrics getDefaultInstanceForType()
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEstimatedCalibrationError()

public float getEstimatedCalibrationError()

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

float estimated_calibration_error = 3;

Returns
TypeDescription
float

The estimatedCalibrationError.

getEstimatedCalibrationErrorExact()

public float getEstimatedCalibrationErrorExact()

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

float estimated_calibration_error_exact = 6;

Returns
TypeDescription
float

The estimatedCalibrationErrorExact.

getMetricsType()

public Evaluation.MultiConfidenceMetrics.MetricsType getMetricsType()

The metrics type for the label.

.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7;

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.MetricsType

The metricsType.

getMetricsTypeValue()

public int getMetricsTypeValue()

The metrics type for the label.

.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for metricsType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Evaluation.MultiConfidenceMetrics other)

public Evaluation.MultiConfidenceMetrics.Builder mergeFrom(Evaluation.MultiConfidenceMetrics other)
Parameter
NameDescription
otherEvaluation.MultiConfidenceMetrics
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Evaluation.MultiConfidenceMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Evaluation.MultiConfidenceMetrics.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Evaluation.MultiConfidenceMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides

removeConfidenceLevelMetrics(int index)

public Evaluation.MultiConfidenceMetrics.Builder removeConfidenceLevelMetrics(int index)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

removeConfidenceLevelMetricsExact(int index)

public Evaluation.MultiConfidenceMetrics.Builder removeConfidenceLevelMetricsExact(int index)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

setAuprc(float value)

public Evaluation.MultiConfidenceMetrics.Builder setAuprc(float value)

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

float auprc = 2;

Parameter
NameDescription
valuefloat

The auprc to set.

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

setAuprcExact(float value)

public Evaluation.MultiConfidenceMetrics.Builder setAuprcExact(float value)

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

float auprc_exact = 5;

Parameter
NameDescription
valuefloat

The auprcExact to set.

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

setConfidenceLevelMetrics(int index, Evaluation.ConfidenceLevelMetrics value)

public Evaluation.MultiConfidenceMetrics.Builder setConfidenceLevelMetrics(int index, Evaluation.ConfidenceLevelMetrics value)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameters
NameDescription
indexint
valueEvaluation.ConfidenceLevelMetrics
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

setConfidenceLevelMetrics(int index, Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

public Evaluation.MultiConfidenceMetrics.Builder setConfidenceLevelMetrics(int index, Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

Metrics across confidence levels with fuzzy matching enabled.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;

Parameters
NameDescription
indexint
builderForValueEvaluation.ConfidenceLevelMetrics.Builder
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

setConfidenceLevelMetricsExact(int index, Evaluation.ConfidenceLevelMetrics value)

public Evaluation.MultiConfidenceMetrics.Builder setConfidenceLevelMetricsExact(int index, Evaluation.ConfidenceLevelMetrics value)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameters
NameDescription
indexint
valueEvaluation.ConfidenceLevelMetrics
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

setConfidenceLevelMetricsExact(int index, Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

public Evaluation.MultiConfidenceMetrics.Builder setConfidenceLevelMetricsExact(int index, Evaluation.ConfidenceLevelMetrics.Builder builderForValue)

Metrics across confidence levels with only exact matching.

repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;

Parameters
NameDescription
indexint
builderForValueEvaluation.ConfidenceLevelMetrics.Builder
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

setEstimatedCalibrationError(float value)

public Evaluation.MultiConfidenceMetrics.Builder setEstimatedCalibrationError(float value)

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

float estimated_calibration_error = 3;

Parameter
NameDescription
valuefloat

The estimatedCalibrationError to set.

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

setEstimatedCalibrationErrorExact(float value)

public Evaluation.MultiConfidenceMetrics.Builder setEstimatedCalibrationErrorExact(float value)

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

float estimated_calibration_error_exact = 6;

Parameter
NameDescription
valuefloat

The estimatedCalibrationErrorExact to set.

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Evaluation.MultiConfidenceMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides

setMetricsType(Evaluation.MultiConfidenceMetrics.MetricsType value)

public Evaluation.MultiConfidenceMetrics.Builder setMetricsType(Evaluation.MultiConfidenceMetrics.MetricsType value)

The metrics type for the label.

.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7;

Parameter
NameDescription
valueEvaluation.MultiConfidenceMetrics.MetricsType

The metricsType to set.

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

setMetricsTypeValue(int value)

public Evaluation.MultiConfidenceMetrics.Builder setMetricsTypeValue(int value)

The metrics type for the label.

.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7;

Parameter
NameDescription
valueint

The enum numeric value on the wire for metricsType to set.

Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Evaluation.MultiConfidenceMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Evaluation.MultiConfidenceMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Evaluation.MultiConfidenceMetrics.Builder
Overrides