Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Instance Attribute Summary collapse
-
#annotation_specs ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrixAnnotationSpecRef>
AnnotationSpecs used in the confusion matrix.
-
#rows ⇒ Array<Array<Object>>
Rows in the confusion matrix.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix
constructor
A new instance of GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix
Returns a new instance of GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrix.
17035 17036 17037 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17035 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_specs ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsConfusionMatrixAnnotationSpecRef>
AnnotationSpecs used in the confusion matrix. For AutoML Text Extraction, a
special negative AnnotationSpec with empty id and displayName of "NULL"
will be added as the last element.
Corresponds to the JSON property annotationSpecs
17018 17019 17020 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17018 def annotation_specs @annotation_specs end |
#rows ⇒ Array<Array<Object>>
Rows in the confusion matrix. The number of rows is equal to the size of
annotationSpecs. rowsi is the number of DataItems that have ground truth of
the annotationSpecs[i] and are predicted as annotationSpecs[j] by the
Model being evaluated. For Text Extraction, when annotationSpecs[i] is the
last element in annotationSpecs, i.e. the special negative AnnotationSpec,
rowsi is the number of predicted entities of annoatationSpec[j] that are
not labeled as any of the ground truth AnnotationSpec. When annotationSpecs[j]
is the special negative AnnotationSpec, rowsi is the number of entities have
ground truth of annotationSpec[i] that are not predicted as an entity by the
Model. The value of the last cell, i.e. rowi where i == j and
annotationSpec[i] is the special negative AnnotationSpec, is always 0.
Corresponds to the JSON property rows
17033 17034 17035 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17033 def rows @rows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17040 17041 17042 17043 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17040 def update!(**args) @annotation_specs = args[:annotation_specs] if args.key?(:annotation_specs) @rows = args[:rows] if args.key?(:rows) end |