Class: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Text
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Text
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_6/classes.rb,
generated/google/apis/prediction_v1_6/representations.rb,
generated/google/apis/prediction_v1_6/representations.rb
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Number of times the output label occurred in the data set.
-
#value ⇒ String
The output label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Text
constructor
A new instance of Text.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Text
Returns a new instance of Text
303 304 305 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 303 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Number of times the output label occurred in the data set.
Corresponds to the JSON property count
296 297 298 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 296 def count @count end |
#value ⇒ String
The output label.
Corresponds to the JSON property value
301 302 303 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 301 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
308 309 310 311 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 308 def update!(**args) @count = args[:count] if args.key?(:count) @value = args[:value] if args.key?(:value) end |