Class: Google::Apis::BigqueryV2::CategoricalValue
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::CategoricalValue
- 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
-
#category_counts ⇒ Array<Google::Apis::BigqueryV2::CategoryCount>
Counts of all categories for the categorical feature.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CategoricalValue
constructor
A new instance of CategoricalValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CategoricalValue
Returns a new instance of CategoricalValue.
784 785 786 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 784 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category_counts ⇒ Array<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
782 783 784 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 782 def category_counts @category_counts end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
789 790 791 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 789 def update!(**args) @category_counts = args[:category_counts] if args.key?(:category_counts) end |