Package com.google.cloud.automl.v1beta1
Class ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
-
- All Implemented Interfaces:
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ClassificationProto.ClassificationEvaluationMetrics
public static final class ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix extends com.google.protobuf.GeneratedMessageV3 implements ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
Confusion matrix of the model running the classification.
Protobuf typegoogle.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.BuilderConfusion matrix of the model running the classification.static classClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOutput only.static interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATION_SPEC_ID_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intROW_FIELD_NUMBER
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROW_FIELD_NUMBER
public static final int ROW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getAnnotationSpecIdList
public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList()
Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;- Specified by:
getAnnotationSpecIdListin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Returns:
- A list containing the annotationSpecId.
-
getAnnotationSpecIdCount
public int getAnnotationSpecIdCount()
Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;- Specified by:
getAnnotationSpecIdCountin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Returns:
- The count of annotationSpecId.
-
getAnnotationSpecId
public String getAnnotationSpecId(int index)
Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;- Specified by:
getAnnotationSpecIdin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The annotationSpecId at the given index.
-
getAnnotationSpecIdBytes
public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index)
Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;- Specified by:
getAnnotationSpecIdBytesin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the annotationSpecId at the given index.
-
getDisplayNameList
public com.google.protobuf.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][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;- Specified by:
getDisplayNameListin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Returns:
- A list containing the displayName.
-
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][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;- Specified by:
getDisplayNameCountin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Returns:
- The count of displayName.
-
getDisplayName
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][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;- Specified by:
getDisplayNamein interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The displayName at the given index.
-
getDisplayNameBytes
public com.google.protobuf.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][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.
repeated string display_name = 3;- Specified by:
getDisplayNameBytesin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the displayName at the given index.
-
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;- Specified by:
getRowListin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
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;- Specified by:
getRowOrBuilderListin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
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;- Specified by:
getRowCountin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
getRow
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;- Specified by:
getRowin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
getRowOrBuilder
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;- Specified by:
getRowOrBuilderin interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder()
-
newBuilder
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilder(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype)
-
toBuilder
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> parser()
-
getParserForType
public com.google.protobuf.Parser<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-