public static final class TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder extends GeneratedMessageV3.Builder<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder> implements TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
Metrics for a single confidence threshold.
Protobuf type
google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry build()
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry buildPartial()
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clear()
Returns
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearConfidenceThreshold()
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.
float confidence_threshold = 1;
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearF1Score()
Output only. The harmonic mean of recall and precision.
float f1_score = 5;
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearPrecision()
Output only. Precision under the given confidence threshold.
float precision = 4;
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearRecall()
Output only. Recall under the given confidence threshold.
float recall = 3;
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clone()
Returns
Overrides
public float 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.
float confidence_threshold = 1;
Returns
Type | Description |
float | The confidenceThreshold.
|
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public float getF1Score()
Output only. The harmonic mean of recall and precision.
float f1_score = 5;
Returns
Type | Description |
float | The f1Score.
|
public float getPrecision()
Output only. Precision under the given confidence threshold.
float precision = 4;
Returns
Type | Description |
float | The precision.
|
Output only. Recall under the given confidence threshold.
float recall = 3;
Returns
Type | Description |
float | The recall.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other)
Parameter
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setConfidenceThreshold(float value)
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.
float confidence_threshold = 1;
Parameter
Name | Description |
value | float
The confidenceThreshold to set.
|
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setF1Score(float value)
Output only. The harmonic mean of recall and precision.
float f1_score = 5;
Parameter
Name | Description |
value | float
The f1Score to set.
|
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setPrecision(float value)
Output only. Precision under the given confidence threshold.
float precision = 4;
Parameter
Name | Description |
value | float
The precision to set.
|
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setRecall(float value)
Output only. Recall under the given confidence threshold.
float recall = 3;
Parameter
Name | Description |
value | float
The recall to set.
|
Returns
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides