Class: Google::Apis::BigqueryV2::CategoricalValue

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

Overview

Representative value of a categorical feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CategoricalValue

Returns a new instance of CategoricalValue.



1037
1038
1039
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1037

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

Instance Attribute Details

#category_countsArray<Google::Apis::BigqueryV2::CategoryCount>

Counts of all categories for the categorical feature. If there are more than ten categories, we return top ten (by count) and return one more CategoryCount with category "OTHER" and count as aggregate counts of remaining categories. Corresponds to the JSON property categoryCounts



1035
1036
1037
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1035

def category_counts
  @category_counts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1042
1043
1044
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1042

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