Google Cloud Datalabeling V1beta1 Client - Class ImageClassificationConfig (0.2.0)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setAnnotationSpecSet

Required. Annotation spec set resource name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAllowMultiLabel

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

Returns
TypeDescription
bool

setAllowMultiLabel

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAnswerAggregationType

Optional. The type of how to aggregate answers.

Returns
TypeDescription
int

setAnswerAggregationType

Optional. The type of how to aggregate answers.

Parameter
NameDescription
var int
Returns
TypeDescription
$this