Package com.google.cloud.documentai.v1
Class Evaluation.Metrics
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.Evaluation.Metrics
- All Implemented Interfaces:
Evaluation.MetricsOrBuilder,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.Metrics
extends com.google.protobuf.GeneratedMessage
implements Evaluation.MetricsOrBuilder
Evaluation metrics, either in aggregate or about a specific entity.Protobuf type
google.cloud.documentai.v1.Evaluation.Metrics- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEvaluation metrics, either in aggregate or about a specific entity.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 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 TypeMethodDescriptionbooleanstatic Evaluation.Metricsstatic final com.google.protobuf.Descriptors.DescriptorfloatThe calculated f1 score.intThe amount of false negatives.intThe amount of false positives.intThe amount of documents with a ground truth occurrence.intThe amount of occurrences in ground truth documents.com.google.protobuf.Parser<Evaluation.Metrics>floatThe calculated precision.intThe amount of documents with a predicted occurrence.intThe amount of occurrences in predicted documents.floatThe calculated recall.intintThe amount of documents that had an occurrence of this label.intThe amount of true positives.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Evaluation.Metrics.Builderstatic Evaluation.Metrics.BuildernewBuilder(Evaluation.Metrics prototype) protected Evaluation.Metrics.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Evaluation.MetricsparseDelimitedFrom(InputStream input) static Evaluation.MetricsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Evaluation.MetricsparseFrom(byte[] data) static Evaluation.MetricsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Evaluation.MetricsparseFrom(com.google.protobuf.ByteString data) static Evaluation.MetricsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Evaluation.MetricsparseFrom(com.google.protobuf.CodedInputStream input) static Evaluation.MetricsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Evaluation.MetricsparseFrom(InputStream input) static Evaluation.MetricsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Evaluation.MetricsparseFrom(ByteBuffer data) static Evaluation.MetricsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Evaluation.Metrics>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
-
PRECISION_FIELD_NUMBER
public static final int PRECISION_FIELD_NUMBER- See Also:
-
RECALL_FIELD_NUMBER
public static final int RECALL_FIELD_NUMBER- See Also:
-
F1_SCORE_FIELD_NUMBER
public static final int F1_SCORE_FIELD_NUMBER- See Also:
-
PREDICTED_OCCURRENCES_COUNT_FIELD_NUMBER
public static final int PREDICTED_OCCURRENCES_COUNT_FIELD_NUMBER- See Also:
-
GROUND_TRUTH_OCCURRENCES_COUNT_FIELD_NUMBER
public static final int GROUND_TRUTH_OCCURRENCES_COUNT_FIELD_NUMBER- See Also:
-
PREDICTED_DOCUMENT_COUNT_FIELD_NUMBER
public static final int PREDICTED_DOCUMENT_COUNT_FIELD_NUMBER- See Also:
-
GROUND_TRUTH_DOCUMENT_COUNT_FIELD_NUMBER
public static final int GROUND_TRUTH_DOCUMENT_COUNT_FIELD_NUMBER- See Also:
-
TRUE_POSITIVES_COUNT_FIELD_NUMBER
public static final int TRUE_POSITIVES_COUNT_FIELD_NUMBER- See Also:
-
FALSE_POSITIVES_COUNT_FIELD_NUMBER
public static final int FALSE_POSITIVES_COUNT_FIELD_NUMBER- See Also:
-
FALSE_NEGATIVES_COUNT_FIELD_NUMBER
public static final int FALSE_NEGATIVES_COUNT_FIELD_NUMBER- See Also:
-
TOTAL_DOCUMENTS_COUNT_FIELD_NUMBER
public static final int TOTAL_DOCUMENTS_COUNT_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
-
getPrecision
public float getPrecision()The calculated precision.
float precision = 1;- Specified by:
getPrecisionin interfaceEvaluation.MetricsOrBuilder- Returns:
- The precision.
-
getRecall
public float getRecall()The calculated recall.
float recall = 2;- Specified by:
getRecallin interfaceEvaluation.MetricsOrBuilder- Returns:
- The recall.
-
getF1Score
public float getF1Score()The calculated f1 score.
float f1_score = 3;- Specified by:
getF1Scorein interfaceEvaluation.MetricsOrBuilder- Returns:
- The f1Score.
-
getPredictedOccurrencesCount
public int getPredictedOccurrencesCount()The amount of occurrences in predicted documents.
int32 predicted_occurrences_count = 4;- Specified by:
getPredictedOccurrencesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The predictedOccurrencesCount.
-
getGroundTruthOccurrencesCount
public int getGroundTruthOccurrencesCount()The amount of occurrences in ground truth documents.
int32 ground_truth_occurrences_count = 5;- Specified by:
getGroundTruthOccurrencesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The groundTruthOccurrencesCount.
-
getPredictedDocumentCount
public int getPredictedDocumentCount()The amount of documents with a predicted occurrence.
int32 predicted_document_count = 10;- Specified by:
getPredictedDocumentCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The predictedDocumentCount.
-
getGroundTruthDocumentCount
public int getGroundTruthDocumentCount()The amount of documents with a ground truth occurrence.
int32 ground_truth_document_count = 11;- Specified by:
getGroundTruthDocumentCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The groundTruthDocumentCount.
-
getTruePositivesCount
public int getTruePositivesCount()The amount of true positives.
int32 true_positives_count = 6;- Specified by:
getTruePositivesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The truePositivesCount.
-
getFalsePositivesCount
public int getFalsePositivesCount()The amount of false positives.
int32 false_positives_count = 7;- Specified by:
getFalsePositivesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The falsePositivesCount.
-
getFalseNegativesCount
public int getFalseNegativesCount()The amount of false negatives.
int32 false_negatives_count = 8;- Specified by:
getFalseNegativesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The falseNegativesCount.
-
getTotalDocumentsCount
public int getTotalDocumentsCount()The amount of documents that had an occurrence of this label.
int32 total_documents_count = 9;- Specified by:
getTotalDocumentsCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The totalDocumentsCount.
-
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.Metrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation.Metrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation.Metrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation.Metrics 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.Metrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation.Metrics 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.Metrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Evaluation.Metrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Evaluation.Metrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Evaluation.Metrics 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
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Evaluation.Metrics.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
-