Send feedback
Class TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder (2.30.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.30.0 keyboard_arrow_down
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.v1beta1.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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]