Google Cloud Datalabeling V1beta1 Client - Class ImageClassificationConfig (0.5.5)

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

Config for image classification human labeling task.

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

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ annotation_spec_set string

Required. Annotation spec set resource name.

↳ allow_multi_label bool

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one image.

↳ answer_aggregation_type int

Optional. The type of how to aggregate answers.

getAnnotationSpecSet

Required. Annotation spec set resource name.

Returns
Type Description
string

setAnnotationSpecSet

Required. Annotation spec set resource name.

Parameter
Name Description
var string
Returns
Type Description
$this

getAllowMultiLabel

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one image.

Returns
Type Description
bool

setAllowMultiLabel

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one image.

Parameter
Name Description
var bool
Returns
Type Description
$this

getAnswerAggregationType

Optional. The type of how to aggregate answers.

Returns
Type Description
int

setAnswerAggregationType

Optional. The type of how to aggregate answers.

Parameter
Name Description
var int
Returns
Type Description
$this