Class Evaluation.Metrics
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta3.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.v1beta3.Evaluation.Metrics
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Evaluation.Metrics.Builder
Evaluation 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 int
F1_SCORE_FIELD_NUMBER
static int
FALSE_NEGATIVES_COUNT_FIELD_NUMBER
static int
FALSE_POSITIVES_COUNT_FIELD_NUMBER
static int
GROUND_TRUTH_DOCUMENT_COUNT_FIELD_NUMBER
static int
GROUND_TRUTH_OCCURRENCES_COUNT_FIELD_NUMBER
static int
PRECISION_FIELD_NUMBER
static int
PREDICTED_DOCUMENT_COUNT_FIELD_NUMBER
static int
PREDICTED_OCCURRENCES_COUNT_FIELD_NUMBER
static int
RECALL_FIELD_NUMBER
static int
TOTAL_DOCUMENTS_COUNT_FIELD_NUMBER
static int
TRUE_POSITIVES_COUNT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static Evaluation.Metrics
getDefaultInstance()
Evaluation.Metrics
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
float
getF1Score()
The calculated f1 score.int
getFalseNegativesCount()
The amount of false negatives.int
getFalsePositivesCount()
The amount of false positives.int
getGroundTruthDocumentCount()
The amount of documents with a ground truth occurrence.int
getGroundTruthOccurrencesCount()
The amount of occurrences in ground truth documents.com.google.protobuf.Parser<Evaluation.Metrics>
getParserForType()
float
getPrecision()
The calculated precision.int
getPredictedDocumentCount()
The amount of documents with a predicted occurrence.int
getPredictedOccurrencesCount()
The amount of occurrences in predicted documents.float
getRecall()
The calculated recall.int
getSerializedSize()
int
getTotalDocumentsCount()
The amount of documents that had an occurrence of this label.int
getTruePositivesCount()
The amount of true positives.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Evaluation.Metrics.Builder
newBuilder()
static Evaluation.Metrics.Builder
newBuilder(Evaluation.Metrics prototype)
Evaluation.Metrics.Builder
newBuilderForType()
protected Evaluation.Metrics.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Evaluation.Metrics
parseDelimitedFrom(InputStream input)
static Evaluation.Metrics
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Evaluation.Metrics
parseFrom(byte[] data)
static Evaluation.Metrics
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Evaluation.Metrics
parseFrom(com.google.protobuf.ByteString data)
static Evaluation.Metrics
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Evaluation.Metrics
parseFrom(com.google.protobuf.CodedInputStream input)
static Evaluation.Metrics
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Evaluation.Metrics
parseFrom(InputStream input)
static Evaluation.Metrics
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Evaluation.Metrics
parseFrom(ByteBuffer data)
static Evaluation.Metrics
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Evaluation.Metrics>
parser()
Evaluation.Metrics.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getPrecision
public float getPrecision()
The calculated precision.
float precision = 1;
- Specified by:
getPrecision
in interfaceEvaluation.MetricsOrBuilder
- Returns:
- The precision.
-
getRecall
public float getRecall()
The calculated recall.
float recall = 2;
- Specified by:
getRecall
in interfaceEvaluation.MetricsOrBuilder
- Returns:
- The recall.
-
getF1Score
public float getF1Score()
The calculated f1 score.
float f1_score = 3;
- Specified by:
getF1Score
in interfaceEvaluation.MetricsOrBuilder
- Returns:
- The f1Score.
-
getPredictedOccurrencesCount
public int getPredictedOccurrencesCount()
The amount of occurrences in predicted documents.
int32 predicted_occurrences_count = 4;
- Specified by:
getPredictedOccurrencesCount
in 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:
getGroundTruthOccurrencesCount
in interfaceEvaluation.MetricsOrBuilder
- Returns:
- The groundTruthOccurrencesCount.
-
getPredictedDocumentCount
public int getPredictedDocumentCount()
The amount of documents with a predicted occurrence.
int32 predicted_document_count = 10;
- Specified by:
getPredictedDocumentCount
in 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:
getGroundTruthDocumentCount
in interfaceEvaluation.MetricsOrBuilder
- Returns:
- The groundTruthDocumentCount.
-
getTruePositivesCount
public int getTruePositivesCount()
The amount of true positives.
int32 true_positives_count = 6;
- Specified by:
getTruePositivesCount
in interfaceEvaluation.MetricsOrBuilder
- Returns:
- The truePositivesCount.
-
getFalsePositivesCount
public int getFalsePositivesCount()
The amount of false positives.
int32 false_positives_count = 7;
- Specified by:
getFalsePositivesCount
in interfaceEvaluation.MetricsOrBuilder
- Returns:
- The falsePositivesCount.
-
getFalseNegativesCount
public int getFalseNegativesCount()
The amount of false negatives.
int32 false_negatives_count = 8;
- Specified by:
getFalseNegativesCount
in 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:
getTotalDocumentsCount
in interfaceEvaluation.MetricsOrBuilder
- Returns:
- The totalDocumentsCount.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Evaluation.Metrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Evaluation.Metrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-