Class ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix (2.23.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
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ROW_FIELD_NUMBER

public static final int ROW_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance()
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder()
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder

newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype)
Parameter
NameDescription
prototypeClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder

parseDelimitedFrom(InputStream input)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the annotationSpecId.

getDefaultInstanceForType()

public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the displayName.

getParserForType()

public Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType()
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder toBuilder()
Returns
TypeDescription
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException