Google Cloud Datalabeling V1beta1 Client - Class ConfusionMatrixEntry (0.5.4)

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

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

Namespace

Google \ Cloud \ DataLabeling \ V1beta1 \ ConfusionMatrix

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
Google\Cloud\DataLabeling\V1beta1\AnnotationSpec|null

hasAnnotationSpec

clearAnnotationSpec

setAnnotationSpec

The annotation spec of a predicted label.

Parameter
Name Description
var Google\Cloud\DataLabeling\V1beta1\AnnotationSpec
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this