Send feedback
Class TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder (2.3.6)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.6 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.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
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."],[],[]]