Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1OperatorMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1OperatorMetadata
- 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
General information useful for labels coming from contributors.
Instance Attribute Summary collapse
-
#comments ⇒ Array<String>
Comments from contributors.
-
#label_votes ⇒ Fixnum
The total number of contributors that choose this label.
-
#score ⇒ Float
Confidence score corresponding to a label.
-
#total_votes ⇒ Fixnum
The total number of contributors that answer this question.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1OperatorMetadata
constructor
A new instance of GoogleCloudDatalabelingV1beta1OperatorMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1OperatorMetadata
Returns a new instance of GoogleCloudDatalabelingV1beta1OperatorMetadata.
3882 3883 3884 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3882 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comments ⇒ Array<String>
Comments from contributors.
Corresponds to the JSON property comments
3863 3864 3865 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3863 def comments @comments end |
#label_votes ⇒ Fixnum
The total number of contributors that choose this label.
Corresponds to the JSON property labelVotes
3868 3869 3870 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3868 def label_votes @label_votes end |
#score ⇒ Float
Confidence score corresponding to a label. For examle, if 3 contributors have
answered the question and 2 of them agree on the final label, the confidence
score will be 0.67 (2/3).
Corresponds to the JSON property score
3875 3876 3877 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3875 def score @score end |
#total_votes ⇒ Fixnum
The total number of contributors that answer this question.
Corresponds to the JSON property totalVotes
3880 3881 3882 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3880 def total_votes @total_votes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3887 3888 3889 3890 3891 3892 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3887 def update!(**args) @comments = args[:comments] if args.key?(:comments) @label_votes = args[:label_votes] if args.key?(:label_votes) @score = args[:score] if args.key?(:score) @total_votes = args[:total_votes] if args.key?(:total_votes) end |