Package com.google.cloud.automl.v1beta1
Class ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
- All Implemented Interfaces:
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ClassificationProto.ClassificationEvaluationMetrics
public static final class ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
extends com.google.protobuf.GeneratedMessage
implements ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
Confusion matrix of the model running the classification.Protobuf type
google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfusion matrix of the model running the classification.static final classOutput only.static interfaceNested 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 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 TypeMethodDescriptionbooleangetAnnotationSpecId(int index) Output only.com.google.protobuf.ByteStringgetAnnotationSpecIdBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.static final com.google.protobuf.Descriptors.DescriptorgetDisplayName(int index) Output only.com.google.protobuf.ByteStringgetDisplayNameBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.com.google.protobuf.Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix>getRow(int index) Output only.intOutput only.Output only.getRowOrBuilder(int index) Output only.Output only.intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilderForType(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<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix>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
-
ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
ROW_FIELD_NUMBER
public static final int ROW_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
-
getAnnotationSpecIdList
public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList()Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;- Specified by:
getAnnotationSpecIdListin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Returns:
- A list containing the annotationSpecId.
-
getAnnotationSpecIdCount
public int getAnnotationSpecIdCount()Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;- Specified by:
getAnnotationSpecIdCountin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Returns:
- The count of annotationSpecId.
-
getAnnotationSpecId
Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;- Specified by:
getAnnotationSpecIdin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The annotationSpecId at the given index.
-
getAnnotationSpecIdBytes
public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;- Specified by:
getAnnotationSpecIdBytesin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the annotationSpecId at the given index.
-
getDisplayNameList
public com.google.protobuf.ProtocolStringList getDisplayNameList()Output only. Display name of the annotation specs used in the confusion matrix, as they were at the moment of the evaluation. For Tables CLASSIFICATION [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;- Specified by:
getDisplayNameListin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Returns:
- A list containing the displayName.
-
getDisplayNameCount
public int getDisplayNameCount()Output only. Display name of the annotation specs used in the confusion matrix, as they were at the moment of the evaluation. For Tables CLASSIFICATION [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;- Specified by:
getDisplayNameCountin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Returns:
- The count of displayName.
-
getDisplayName
Output only. Display name of the annotation specs used in the confusion matrix, as they were at the moment of the evaluation. For Tables CLASSIFICATION [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;- Specified by:
getDisplayNamein interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The displayName at the given index.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes(int index) Output only. Display name of the annotation specs used in the confusion matrix, as they were at the moment of the evaluation. For Tables CLASSIFICATION [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;- Specified by:
getDisplayNameBytesin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the displayName at the given index.
-
getRowList
Output only. Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id`. `row[i].example_count[j]` is the number of examples that have ground truth of the `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by the model being evaluated.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;- Specified by:
getRowListin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
getRowOrBuilderList
public List<? extends ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder> getRowOrBuilderList()Output only. Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id`. `row[i].example_count[j]` is the number of examples that have ground truth of the `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by the model being evaluated.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;- Specified by:
getRowOrBuilderListin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
getRowCount
public int getRowCount()Output only. Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id`. `row[i].example_count[j]` is the number of examples that have ground truth of the `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by the model being evaluated.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;- Specified by:
getRowCountin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
getRow
Output only. Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id`. `row[i].example_count[j]` is the number of examples that have ground truth of the `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by the model being evaluated.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;- Specified by:
getRowin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
getRowOrBuilder
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder getRowOrBuilder(int index) Output only. Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id`. `row[i].example_count[j]` is the number of examples that have ground truth of the `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by the model being evaluated.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;- Specified by:
getRowOrBuilderin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
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 ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType()- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder() -
newBuilder
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance() -
parser
public static com.google.protobuf.Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> parser() -
getParserForType
public com.google.protobuf.Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> getParserForType()- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType()- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-