Google Cloud Datalabeling V1beta1 Client - Class ConfusionMatrixEntry (0.1.14)

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class ConfusionMatrixEntry.

Generated from protobuf message google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ annotation_spec Google\Cloud\DataLabeling\V1beta1\AnnotationSpec

The annotation spec of a predicted label.

↳ item_count int

Number of items predicted to have this label. (The ground truth label for these items is the Row.annotationSpec of this entry's parent.)

getAnnotationSpec

The annotation spec of a predicted label.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\AnnotationSpec|null

hasAnnotationSpec

clearAnnotationSpec

setAnnotationSpec

The annotation spec of a predicted label.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\AnnotationSpec
Returns
TypeDescription
$this

getItemCount

Number of items predicted to have this label. (The ground truth label for these items is the Row.annotationSpec of this entry's parent.)

Returns
TypeDescription
int

setItemCount

Number of items predicted to have this label. (The ground truth label for these items is the Row.annotationSpec of this entry's parent.)

Parameter
NameDescription
var int
Returns
TypeDescription
$this