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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder()
newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(CodedInputStream input)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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;
getDefaultInstanceForType()
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType()
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;
getParserForType()
public Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> getParserForType()
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
|
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;
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
|
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides