public static final class TextExtractionEvaluationMetrics.ConfidenceMetricsEntry extends GeneratedMessageV3 implements TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
Metrics for a single confidence threshold.
Protobuf type
google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Static Fields
public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER
Field Value
public static final int F1_SCORE_FIELD_NUMBER
Field Value
public static final int PRECISION_FIELD_NUMBER
Field Value
public static final int RECALL_FIELD_NUMBER
Field Value
Static Methods
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilder()
Returns
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilder(TextExtractionEvaluationMetrics.ConfidenceMetricsEntry prototype)
Parameter
Returns
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
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 float getF1Score()
Output only. The harmonic mean of recall and precision.
float f1_score = 5;
Returns
Type | Description |
float | The f1Score.
|
public Parser<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> getParserForType()
Returns
Overrides
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.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilderForType()
Returns
protected TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions