public static final class ClassificationEvaluationMetrics.ConfusionMatrix extends com.google.protobuf.GeneratedMessageV3 implements ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
Confusion matrix of the model running the classification.Protobuf type
google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix| Modifier and Type | Class and Description |
|---|---|
static class |
ClassificationEvaluationMetrics.ConfusionMatrix.Builder
Confusion matrix of the model running the classification.
|
static class |
ClassificationEvaluationMetrics.ConfusionMatrix.Row
Output only.
|
static interface |
ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder |
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| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATION_SPEC_ID_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
ROW_FIELD_NUMBER |
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, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int ROW_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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.v1p1beta.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;getAnnotationSpecIdList in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderpublic int getAnnotationSpecIdCount()
Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;getAnnotationSpecIdCount in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderpublic String getAnnotationSpecId(int index)
Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;getAnnotationSpecId in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderindex - The index of the element to return.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.v1p1beta.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;getAnnotationSpecIdBytes in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderindex - The index of the value to return.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.v1p1beta.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;getDisplayNameList in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderpublic 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.v1p1beta.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;getDisplayNameCount in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderpublic String getDisplayName(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.v1p1beta.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;getDisplayName in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderindex - The index of the element to return.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.v1p1beta.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;getDisplayNameBytes in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderindex - The index of the value to return.public List<ClassificationEvaluationMetrics.ConfusionMatrix.Row> 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
getRowList in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderpublic List<? extends 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
getRowOrBuilderList in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderpublic 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
getRowCount in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderpublic ClassificationEvaluationMetrics.ConfusionMatrix.Row getRow(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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
getRow in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderpublic 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
getRowOrBuilder in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder()
public static ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder(ClassificationEvaluationMetrics.ConfusionMatrix prototype)
public ClassificationEvaluationMetrics.ConfusionMatrix.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance()
public static com.google.protobuf.Parser<ClassificationEvaluationMetrics.ConfusionMatrix> parser()
public com.google.protobuf.Parser<ClassificationEvaluationMetrics.ConfusionMatrix> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.