Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelStats

Inherits:
Object
  • Object
show all
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

Statistics about annotation specs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1LabelStats

Returns a new instance of GoogleCloudDatalabelingV1beta1LabelStats.



3227
3228
3229
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3227

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

Instance Attribute Details

#example_countHash<String,Fixnum>

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations. Corresponds to the JSON property exampleCount

Returns:

  • (Hash<String,Fixnum>)


3225
3226
3227
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3225

def example_count
  @example_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3232
3233
3234
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 3232

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