Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1OperatorMetadata

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

General information useful for labels coming from contributors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1OperatorMetadata

Returns a new instance of GoogleCloudDatalabelingV1beta1OperatorMetadata.



3882
3883
3884
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3882

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

Instance Attribute Details

#commentsArray<String>

Comments from contributors. Corresponds to the JSON property comments

Returns:

  • (Array<String>)


3863
3864
3865
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3863

def comments
  @comments
end

#label_votesFixnum

The total number of contributors that choose this label. Corresponds to the JSON property labelVotes

Returns:

  • (Fixnum)


3868
3869
3870
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3868

def label_votes
  @label_votes
end

#scoreFloat

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

Returns:

  • (Float)


3875
3876
3877
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3875

def score
  @score
end

#total_votesFixnum

The total number of contributors that answer this question. Corresponds to the JSON property totalVotes

Returns:

  • (Fixnum)


3880
3881
3882
# File 'generated/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 'generated/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