Package com.google.cloud.documentai.v1
Class Evaluation.Metrics
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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.GeneratedMessageV3 implements Evaluation.MetricsOrBuilder
Evaluation metrics, either in aggregate or about a specific entity.
Protobuf typegoogle.cloud.documentai.v1.Evaluation.Metrics- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvaluation.Metrics.BuilderEvaluation metrics, either in aggregate or about a specific entity.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intF1_SCORE_FIELD_NUMBERstatic intFALSE_NEGATIVES_COUNT_FIELD_NUMBERstatic intFALSE_POSITIVES_COUNT_FIELD_NUMBERstatic intGROUND_TRUTH_DOCUMENT_COUNT_FIELD_NUMBERstatic intGROUND_TRUTH_OCCURRENCES_COUNT_FIELD_NUMBERstatic intPRECISION_FIELD_NUMBERstatic intPREDICTED_DOCUMENT_COUNT_FIELD_NUMBERstatic intPREDICTED_OCCURRENCES_COUNT_FIELD_NUMBERstatic intRECALL_FIELD_NUMBERstatic intTOTAL_DOCUMENTS_COUNT_FIELD_NUMBERstatic intTRUE_POSITIVES_COUNT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Evaluation.MetricsgetDefaultInstance()Evaluation.MetricsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()floatgetF1Score()The calculated f1 score.intgetFalseNegativesCount()The amount of false negatives.intgetFalsePositivesCount()The amount of false positives.intgetGroundTruthDocumentCount()The amount of documents with a ground truth occurrence.intgetGroundTruthOccurrencesCount()The amount of occurrences in ground truth documents.com.google.protobuf.Parser<Evaluation.Metrics>getParserForType()floatgetPrecision()The calculated precision.intgetPredictedDocumentCount()The amount of documents with a predicted occurrence.intgetPredictedOccurrencesCount()The amount of occurrences in predicted documents.floatgetRecall()The calculated recall.intgetSerializedSize()intgetTotalDocumentsCount()The amount of documents that had an occurrence of this label.intgetTruePositivesCount()The amount of true positives.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Evaluation.Metrics.BuildernewBuilder()static Evaluation.Metrics.BuildernewBuilder(Evaluation.Metrics prototype)Evaluation.Metrics.BuildernewBuilderForType()protected Evaluation.Metrics.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()Evaluation.Metrics.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PRECISION_FIELD_NUMBER
public static final int PRECISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECALL_FIELD_NUMBER
public static final int RECALL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
F1_SCORE_FIELD_NUMBER
public static final int F1_SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREDICTED_OCCURRENCES_COUNT_FIELD_NUMBER
public static final int PREDICTED_OCCURRENCES_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GROUND_TRUTH_OCCURRENCES_COUNT_FIELD_NUMBER
public static final int GROUND_TRUTH_OCCURRENCES_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREDICTED_DOCUMENT_COUNT_FIELD_NUMBER
public static final int PREDICTED_DOCUMENT_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GROUND_TRUTH_DOCUMENT_COUNT_FIELD_NUMBER
public static final int GROUND_TRUTH_DOCUMENT_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRUE_POSITIVES_COUNT_FIELD_NUMBER
public static final int TRUE_POSITIVES_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FALSE_POSITIVES_COUNT_FIELD_NUMBER
public static final int FALSE_POSITIVES_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FALSE_NEGATIVES_COUNT_FIELD_NUMBER
public static final int FALSE_NEGATIVES_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_DOCUMENTS_COUNT_FIELD_NUMBER
public static final int TOTAL_DOCUMENTS_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static Evaluation.Metrics parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Evaluation.Metrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Evaluation.Metrics parseDelimitedFrom(InputStream input) throws IOException
- 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
public Evaluation.Metrics.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Evaluation.Metrics.Builder newBuilder()
-
newBuilder
public static Evaluation.Metrics.Builder newBuilder(Evaluation.Metrics prototype)
-
toBuilder
public Evaluation.Metrics.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Evaluation.Metrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Evaluation.Metrics getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Evaluation.Metrics> parser()
-
getParserForType
public com.google.protobuf.Parser<Evaluation.Metrics> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Evaluation.Metrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-