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

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/automl/v1beta1/doc/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_idArray<String>

Returns Output only. IDs of the annotation specs used in the confusion matrix. For Tables CLASSIFICATION

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 only list of Annotation_spec_display_name-s is populated.



177
178
179
180
181
182
183
184
185
186
# File 'lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/classification.rb', line 177

class ConfusionMatrix
  # 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; end
end

#rowArray<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].value[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:



177
178
179
180
181
182
183
184
185
186
# File 'lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/classification.rb', line 177

class ConfusionMatrix
  # 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; end
end