Class ClassificationEvaluationMetrics.ConfusionMatrix

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
All Implemented Interfaces:
ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
ClassificationEvaluationMetrics

public static final class ClassificationEvaluationMetrics.ConfusionMatrix extends com.google.protobuf.GeneratedMessage implements ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
 Confusion matrix of the model running the classification.
 
Protobuf type google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
See Also:
  • Field Details

    • ANNOTATION_SPEC_ID_FIELD_NUMBER

      public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • ROW_FIELD_NUMBER

      public static final int ROW_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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;
      Specified by:
      getRowList in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
    • 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;
      Specified by:
      getRowOrBuilderList in interface 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2;
      Specified by:
      getRowCount in interface ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
    • getRow

       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
    • getRowOrBuilder

       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:
      getRowOrBuilder 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • 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) 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
    • parseFrom

      Throws:
      IOException
    • parseFrom

      public static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ClassificationEvaluationMetrics.ConfusionMatrix parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ClassificationEvaluationMetrics.ConfusionMatrix parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ClassificationEvaluationMetrics.ConfusionMatrix.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ClassificationEvaluationMetrics.ConfusionMatrix> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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