Google Cloud Datalabeling V1beta1 Client - Class OperatorMetadata (0.1.14)

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

General information useful for labels coming from contributors.

Generated from protobuf message google.cloud.datalabeling.v1beta1.OperatorMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ score float

Confidence score corresponding to a label. For examle, if 3 contributors have answered the question and 2 of them agree on the final label, the confidence score will be 0.67 (2/3).

↳ total_votes int

The total number of contributors that answer this question.

↳ label_votes int

The total number of contributors that choose this label.

↳ comments array

Comments from contributors.

getScore

Confidence score corresponding to a label. For examle, if 3 contributors have answered the question and 2 of them agree on the final label, the confidence score will be 0.67 (2/3).

Returns
TypeDescription
float

setScore

Confidence score corresponding to a label. For examle, if 3 contributors have answered the question and 2 of them agree on the final label, the confidence score will be 0.67 (2/3).

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getTotalVotes

The total number of contributors that answer this question.

Returns
TypeDescription
int

setTotalVotes

The total number of contributors that answer this question.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLabelVotes

The total number of contributors that choose this label.

Returns
TypeDescription
int

setLabelVotes

The total number of contributors that choose this label.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getComments

Comments from contributors.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setComments

Comments from contributors.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this