Class ClassificationEvaluationMetrics.ConfusionMatrix (2.9.0)

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

Confusion matrix of the model running the classification.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > 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 ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance()
Returns
TypeDescription
ClassificationEvaluationMetrics.ConfusionMatrix

getDescriptor()

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

newBuilder()

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

newBuilder(ClassificationEvaluationMetrics.ConfusionMatrix prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<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 ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType()
Returns
TypeDescription
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<ClassificationEvaluationMetrics.ConfusionMatrix> getParserForType()
Returns
TypeDescription
Parser<ConfusionMatrix>
Overrides

getRow(int index)

public 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;

Returns
TypeDescription
int

getRowList()

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;

Returns
TypeDescription
List<Row>

getRowOrBuilder(int index)

public 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder

getRowOrBuilderList()

public 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;

Returns
TypeDescription
List<? extends com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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 ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType()
Returns
TypeDescription
ClassificationEvaluationMetrics.ConfusionMatrix.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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