Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ClassificationMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb

Overview

Metadata for classification annotations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ClassificationMetadata

Returns a new instance of GoogleCloudDatalabelingV1beta1ClassificationMetadata.



1279
1280
1281
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1279

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#is_multi_labelBoolean Also known as: is_multi_label?

Whether the classification task is multi-label or not. Corresponds to the JSON property isMultiLabel

Returns:

  • (Boolean)


1276
1277
1278
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1276

def is_multi_label
  @is_multi_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1284
1285
1286
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1284

def update!(**args)
  @is_multi_label = args[:is_multi_label] if args.key?(:is_multi_label)
end