Class: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical::Value
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical::Value
- 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
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Number of times this feature had this value.
-
#value ⇒ String
The category name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Value
constructor
A new instance of Value.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Value
Returns a new instance of Value
171 172 173 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 171 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Number of times this feature had this value.
Corresponds to the JSON property count
164 165 166 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 164 def count @count end |
#value ⇒ String
The category name.
Corresponds to the JSON property value
169 170 171 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 169 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
176 177 178 179 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 176 def update!(**args) @count = args[:count] if args.key?(:count) @value = args[:value] if args.key?(:value) end |