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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry build()
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry buildPartial()
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clear()
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;
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearF1Score()
Output only. The harmonic mean of recall and precision.
float f1_score = 5;
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearPrecision()
Output only. Precision under the given confidence threshold.
float precision = 4;
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clearRecall()
Output only. Recall under the given confidence threshold.
float recall = 3;
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder clone()
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()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
public final boolean isInitialized()
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other)
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides