Class: Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/automl/v1beta1/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.v1beta1.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.v1beta1.TablesModelMetadata.prediction_type] only list of [annotation_spec_display_name-s][] is populated.



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# File 'proto_docs/google/cloud/automl/v1beta1/classification.rb', line 202

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::V1beta1::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.v1beta1.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.v1beta1.TablesModelMetadata.prediction_type], distinct values of the target column at the moment of the model evaluation are populated here.



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# File 'proto_docs/google/cloud/automl/v1beta1/classification.rb', line 202

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::V1beta1::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::V1beta1::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:



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# File 'proto_docs/google/cloud/automl/v1beta1/classification.rb', line 202

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::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
  class Row
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end