Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsConfusionMatrix
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsConfusionMatrix
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Instance Attribute Summary collapse
-
#annotation_specs ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsConfusionMatrixAnnotationSpecRef>
AnnotationSpecs used in the confusion matrix.
-
#rows ⇒ Array<Array<Object>>
Rows in the confusion matrix.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsConfusionMatrix
constructor
A new instance of GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsConfusionMatrix.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsConfusionMatrix
Returns a new instance of GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsConfusionMatrix.
25602 25603 25604 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25602 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_specs ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsConfusionMatrixAnnotationSpecRef>
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
25585 25586 25587 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25585 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
25600 25601 25602 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25600 def rows @rows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25607 25608 25609 25610 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25607 def update!(**args) @annotation_specs = args[:annotation_specs] if args.key?(:annotation_specs) @rows = args[:rows] if args.key?(:rows) end |