Class: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_5/classes.rb,
generated/google/apis/prediction_v1_5/representations.rb,
generated/google/apis/prediction_v1_5/representations.rb
Overview
Description of the categorical values of this feature.
Defined Under Namespace
Classes: Value
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Number of categorical values for this feature in the data.
-
#values ⇒ Array<Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical::Value>
List of all the categories for this feature in the data set.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Categorical
constructor
A new instance of Categorical.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Categorical
Returns a new instance of Categorical
147 148 149 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Number of categorical values for this feature in the data.
Corresponds to the JSON property count
140 141 142 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 140 def count @count end |
#values ⇒ Array<Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical::Value>
List of all the categories for this feature in the data set.
Corresponds to the JSON property values
145 146 147 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 145 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
152 153 154 155 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 152 def update!(**args) @count = args[:count] if args.key?(:count) @values = args[:values] if args.key?(:values) end |