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
Static Fields
ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
ROW_FIELD_NUMBER
public static final int ROW_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder()
Returns
newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype)
Parameter
Returns
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
getDefaultInstanceForType()
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> getParserForType()
Returns
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
Returns
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
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
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
Returns
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions