Class ClassificationEvaluationMetrics.ConfusionMatrix

    • 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
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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.v1p1beta.TablesModelMetadata.prediction_type]
         only list of [annotation_spec_display_name-s][] is populated.
         
        repeated string annotation_spec_id = 1;
        Specified by:
        getAnnotationSpecIdList in interface 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.v1p1beta.TablesModelMetadata.prediction_type]
         only list of [annotation_spec_display_name-s][] is populated.
         
        repeated string annotation_spec_id = 1;
        Specified by:
        getAnnotationSpecIdCount in interface 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.v1p1beta.TablesModelMetadata.prediction_type]
         only list of [annotation_spec_display_name-s][] is populated.
         
        repeated string annotation_spec_id = 1;
        Specified by:
        getAnnotationSpecId in interface 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.v1p1beta.TablesModelMetadata.prediction_type]
         only list of [annotation_spec_display_name-s][] is populated.
         
        repeated string annotation_spec_id = 1;
        Specified by:
        getAnnotationSpecIdBytes in interface 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.v1p1beta.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:
        getDisplayNameList in interface 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.v1p1beta.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:
        getDisplayNameCount in interface 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.v1p1beta.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:
        getDisplayName in interface 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.v1p1beta.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:
        getDisplayNameBytes in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the displayName at the given index.
      • 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;
        Specified by:
        getRowCount in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
      • getRow

        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;
        Specified by:
        getRow in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom​(ByteBuffer data,
                                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom​(com.google.protobuf.ByteString data)
                                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static 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 ClassificationEvaluationMetrics.ConfusionMatrix parseFrom​(byte[] data,
                                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • getParserForType

        public com.google.protobuf.Parser<ClassificationEvaluationMetrics.ConfusionMatrix> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder