Class: Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/automl/v1/classification.rb

Overview

Confusion matrix of the model running the classification.

Defined Under Namespace

Classes: Row

Instance Attribute Summary collapse

Instance Attribute Details

#annotation_spec_id::Array<::String>

Returns 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.

Returns:

  • (::Array<::String>)

    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.



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/automl/v1/classification.rb', line 157

class ConfusionMatrix
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Output only. A row in the confusion matrix.
  # @!attribute [rw] example_count
  #   @return [::Array<::Integer>]
  #     Output only. Value of the specific cell in the confusion matrix.
  #     The number of values each row has (i.e. the length of the row) is equal
  #     to the length of the `annotation_spec_id` field or, if that one is not
  #     populated, length of the {::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
  class Row
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#display_name::Array<::String>

Returns 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.

Returns:

  • (::Array<::String>)

    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.



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/automl/v1/classification.rb', line 157

class ConfusionMatrix
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Output only. A row in the confusion matrix.
  # @!attribute [rw] example_count
  #   @return [::Array<::Integer>]
  #     Output only. Value of the specific cell in the confusion matrix.
  #     The number of values each row has (i.e. the length of the row) is equal
  #     to the length of the `annotation_spec_id` field or, if that one is not
  #     populated, length of the {::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
  class Row
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#row::Array<::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix::Row>

Returns 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.

Returns:



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/automl/v1/classification.rb', line 157

class ConfusionMatrix
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Output only. A row in the confusion matrix.
  # @!attribute [rw] example_count
  #   @return [::Array<::Integer>]
  #     Output only. Value of the specific cell in the confusion matrix.
  #     The number of values each row has (i.e. the length of the row) is equal
  #     to the length of the `annotation_spec_id` field or, if that one is not
  #     populated, length of the {::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
  class Row
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end