Package com.google.cloud.documentai.v1
Class Evaluation.MultiConfidenceMetrics
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics
- All Implemented Interfaces:
Evaluation.MultiConfidenceMetricsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Evaluation
public static final class Evaluation.MultiConfidenceMetrics
extends com.google.protobuf.GeneratedMessage
implements Evaluation.MultiConfidenceMetricsOrBuilder
Metrics across multiple confidence levels.Protobuf type
google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetrics across multiple confidence levels.static enumA type that determines how metrics should be interpreted.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatgetAuprc()The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds.floatThe AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.getConfidenceLevelMetrics(int index) Metrics across confidence levels with fuzzy matching enabled.intMetrics across confidence levels with fuzzy matching enabled.getConfidenceLevelMetricsExact(int index) Metrics across confidence levels with only exact matching.intMetrics across confidence levels with only exact matching.Metrics across confidence levels with only exact matching.getConfidenceLevelMetricsExactOrBuilder(int index) Metrics across confidence levels with only exact matching.List<? extends Evaluation.ConfidenceLevelMetricsOrBuilder>Metrics across confidence levels with only exact matching.Metrics across confidence levels with fuzzy matching enabled.getConfidenceLevelMetricsOrBuilder(int index) Metrics across confidence levels with fuzzy matching enabled.List<? extends Evaluation.ConfidenceLevelMetricsOrBuilder>Metrics across confidence levels with fuzzy matching enabled.static final com.google.protobuf.Descriptors.DescriptorfloatThe Estimated Calibration Error (ECE) of the confidence of the predicted entities.floatThe ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only.The metrics type for the label.intThe metrics type for the label.com.google.protobuf.Parser<Evaluation.MultiConfidenceMetrics>intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(Evaluation.MultiConfidenceMetrics prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Evaluation.MultiConfidenceMetrics>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CONFIDENCE_LEVEL_METRICS_FIELD_NUMBER
public static final int CONFIDENCE_LEVEL_METRICS_FIELD_NUMBER- See Also:
-
CONFIDENCE_LEVEL_METRICS_EXACT_FIELD_NUMBER
public static final int CONFIDENCE_LEVEL_METRICS_EXACT_FIELD_NUMBER- See Also:
-
AUPRC_FIELD_NUMBER
public static final int AUPRC_FIELD_NUMBER- See Also:
-
ESTIMATED_CALIBRATION_ERROR_FIELD_NUMBER
public static final int ESTIMATED_CALIBRATION_ERROR_FIELD_NUMBER- See Also:
-
AUPRC_EXACT_FIELD_NUMBER
public static final int AUPRC_EXACT_FIELD_NUMBER- See Also:
-
ESTIMATED_CALIBRATION_ERROR_EXACT_FIELD_NUMBER
public static final int ESTIMATED_CALIBRATION_ERROR_EXACT_FIELD_NUMBER- See Also:
-
METRICS_TYPE_FIELD_NUMBER
public static final int METRICS_TYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getConfidenceLevelMetricsList
Metrics across confidence levels with fuzzy matching enabled.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;- Specified by:
getConfidenceLevelMetricsListin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getConfidenceLevelMetricsOrBuilderList
public List<? extends Evaluation.ConfidenceLevelMetricsOrBuilder> getConfidenceLevelMetricsOrBuilderList()Metrics across confidence levels with fuzzy matching enabled.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;- Specified by:
getConfidenceLevelMetricsOrBuilderListin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getConfidenceLevelMetricsCount
public int getConfidenceLevelMetricsCount()Metrics across confidence levels with fuzzy matching enabled.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;- Specified by:
getConfidenceLevelMetricsCountin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getConfidenceLevelMetrics
Metrics across confidence levels with fuzzy matching enabled.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;- Specified by:
getConfidenceLevelMetricsin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getConfidenceLevelMetricsOrBuilder
Metrics across confidence levels with fuzzy matching enabled.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1;- Specified by:
getConfidenceLevelMetricsOrBuilderin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getConfidenceLevelMetricsExactList
Metrics across confidence levels with only exact matching.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;- Specified by:
getConfidenceLevelMetricsExactListin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getConfidenceLevelMetricsExactOrBuilderList
public List<? extends Evaluation.ConfidenceLevelMetricsOrBuilder> getConfidenceLevelMetricsExactOrBuilderList()Metrics across confidence levels with only exact matching.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;- Specified by:
getConfidenceLevelMetricsExactOrBuilderListin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getConfidenceLevelMetricsExactCount
public int getConfidenceLevelMetricsExactCount()Metrics across confidence levels with only exact matching.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;- Specified by:
getConfidenceLevelMetricsExactCountin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getConfidenceLevelMetricsExact
Metrics across confidence levels with only exact matching.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;- Specified by:
getConfidenceLevelMetricsExactin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getConfidenceLevelMetricsExactOrBuilder
public Evaluation.ConfidenceLevelMetricsOrBuilder getConfidenceLevelMetricsExactOrBuilder(int index) Metrics across confidence levels with only exact matching.
repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4;- Specified by:
getConfidenceLevelMetricsExactOrBuilderin interfaceEvaluation.MultiConfidenceMetricsOrBuilder
-
getAuprc
public float getAuprc()The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds.
float auprc = 2;- Specified by:
getAuprcin interfaceEvaluation.MultiConfidenceMetricsOrBuilder- Returns:
- The auprc.
-
getEstimatedCalibrationError
public float getEstimatedCalibrationError()The Estimated Calibration Error (ECE) of the confidence of the predicted entities.
float estimated_calibration_error = 3;- Specified by:
getEstimatedCalibrationErrorin interfaceEvaluation.MultiConfidenceMetricsOrBuilder- Returns:
- The estimatedCalibrationError.
-
getAuprcExact
public float getAuprcExact()The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.
float auprc_exact = 5;- Specified by:
getAuprcExactin interfaceEvaluation.MultiConfidenceMetricsOrBuilder- Returns:
- The auprcExact.
-
getEstimatedCalibrationErrorExact
public float getEstimatedCalibrationErrorExact()The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only.
float estimated_calibration_error_exact = 6;- Specified by:
getEstimatedCalibrationErrorExactin interfaceEvaluation.MultiConfidenceMetricsOrBuilder- Returns:
- The estimatedCalibrationErrorExact.
-
getMetricsTypeValue
public int getMetricsTypeValue()The metrics type for the label.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7;- Specified by:
getMetricsTypeValuein interfaceEvaluation.MultiConfidenceMetricsOrBuilder- Returns:
- The enum numeric value on the wire for metricsType.
-
getMetricsType
The metrics type for the label.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7;- Specified by:
getMetricsTypein interfaceEvaluation.MultiConfidenceMetricsOrBuilder- Returns:
- The metricsType.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Evaluation.MultiConfidenceMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation.MultiConfidenceMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation.MultiConfidenceMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation.MultiConfidenceMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation.MultiConfidenceMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation.MultiConfidenceMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Evaluation.MultiConfidenceMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Evaluation.MultiConfidenceMetrics parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Evaluation.MultiConfidenceMetrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Evaluation.MultiConfidenceMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Evaluation.MultiConfidenceMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Evaluation.MultiConfidenceMetrics.Builder newBuilder(Evaluation.MultiConfidenceMetrics prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Evaluation.MultiConfidenceMetrics.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-