Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageClassificationConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageClassificationConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datalabeling_v1beta1/classes.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb
Overview
Config for image classification human labeling task.
Instance Attribute Summary collapse
-
#allow_multi_label ⇒ Boolean
(also: #allow_multi_label?)
Optional.
-
#annotation_spec_set ⇒ String
Required.
-
#answer_aggregation_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ImageClassificationConfig
constructor
A new instance of GoogleCloudDatalabelingV1beta1ImageClassificationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ImageClassificationConfig
Returns a new instance of GoogleCloudDatalabelingV1beta1ImageClassificationConfig.
2604 2605 2606 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2604 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_multi_label ⇒ Boolean Also known as: allow_multi_label?
Optional. If allow_multi_label is true, contributors are able to choose
multiple labels for one image.
Corresponds to the JSON property allowMultiLabel
2591 2592 2593 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2591 def allow_multi_label @allow_multi_label end |
#annotation_spec_set ⇒ String
Required. Annotation spec set resource name.
Corresponds to the JSON property annotationSpecSet
2597 2598 2599 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2597 def annotation_spec_set @annotation_spec_set end |
#answer_aggregation_type ⇒ String
Optional. The type of how to aggregate answers.
Corresponds to the JSON property answerAggregationType
2602 2603 2604 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2602 def answer_aggregation_type @answer_aggregation_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2609 2610 2611 2612 2613 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2609 def update!(**args) @allow_multi_label = args[:allow_multi_label] if args.key?(:allow_multi_label) @annotation_spec_set = args[:annotation_spec_set] if args.key?(:annotation_spec_set) @answer_aggregation_type = args[:answer_aggregation_type] if args.key?(:answer_aggregation_type) end |