Google Cloud Datalabeling V1beta1 Client - Class ExampleComparison (0.1.14)

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

Example comparisons comparing ground truth output and predictions for a specific input.

Generated from protobuf message google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ ground_truth_example Google\Cloud\DataLabeling\V1beta1\Example

The ground truth output for the input.

↳ model_created_examples array<Google\Cloud\DataLabeling\V1beta1\Example>

Predictions by the model for the input.

getGroundTruthExample

The ground truth output for the input.

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

hasGroundTruthExample

clearGroundTruthExample

setGroundTruthExample

The ground truth output for the input.

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

getModelCreatedExamples

Predictions by the model for the input.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setModelCreatedExamples

Predictions by the model for the input.

Parameter
NameDescription
var array<Google\Cloud\DataLabeling\V1beta1\Example>
Returns
TypeDescription
$this