Class ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix (2.44.0)

public static final class ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix extends GeneratedMessageV3 implements ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder

Confusion matrix of the model running the classification.

Protobuf type google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix

Static Fields

ANNOTATION_SPEC_ID_FIELD_NUMBER

public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ROW_FIELD_NUMBER

public static final int ROW_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance()
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder()
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder

newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype)
Parameter
Name Description
prototype ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder

parseDelimitedFrom(InputStream input)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> parser()
Returns
Type Description
Parser<ConfusionMatrix>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAnnotationSpecId(int index)

public String getAnnotationSpecId(int index)

Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION

prediction_type only list of [annotation_spec_display_name-s][] is populated.

repeated string annotation_spec_id = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The annotationSpecId at the given index.

getAnnotationSpecIdBytes(int index)

public ByteString getAnnotationSpecIdBytes(int index)

Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION

prediction_type only list of [annotation_spec_display_name-s][] is populated.

repeated string annotation_spec_id = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the annotationSpecId at the given index.

getAnnotationSpecIdCount()

public int getAnnotationSpecIdCount()

Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION

prediction_type only list of [annotation_spec_display_name-s][] is populated.

repeated string annotation_spec_id = 1;

Returns
Type Description
int

The count of annotationSpecId.

getAnnotationSpecIdList()

public ProtocolStringList getAnnotationSpecIdList()

Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION

prediction_type only list of [annotation_spec_display_name-s][] is populated.

repeated string annotation_spec_id = 1;

Returns
Type Description
ProtocolStringList

A list containing the annotationSpecId.

getDefaultInstanceForType()

public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType()
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix

getDisplayName(int index)

public 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, distinct values of the target column at the moment of the model evaluation are populated here.

repeated string display_name = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The displayName at the given index.

getDisplayNameBytes(int index)

public 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, distinct values of the target column at the moment of the model evaluation are populated here.

repeated string display_name = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the displayName at the given index.

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, distinct values of the target column at the moment of the model evaluation are populated here.

repeated string display_name = 3;

Returns
Type Description
int

The count of displayName.

getDisplayNameList()

public 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, distinct values of the target column at the moment of the model evaluation are populated here.

repeated string display_name = 3;

Returns
Type Description
ProtocolStringList

A list containing the displayName.

getParserForType()

public Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> getParserForType()
Returns
Type Description
Parser<ConfusionMatrix>
Overrides

getRow(int index)

public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;

Parameter
Name Description
index int
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row

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;

Returns
Type Description
int

getRowList()

public List<ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;

Returns
Type Description
List<Row>

getRowOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType()
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder toBuilder()
Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException