Class: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature
- 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
Overview
Description of the output value or label.
Defined Under Namespace
Instance Attribute Summary collapse
-
#numeric ⇒ Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Numeric
Description of the output values in the data set.
-
#text ⇒ Array<Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Text>
Description of the output labels in the data set.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OutputFeature
constructor
A new instance of OutputFeature.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ OutputFeature
Returns a new instance of OutputFeature
248 249 250 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#numeric ⇒ Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Numeric
Description of the output values in the data set.
Corresponds to the JSON property numeric
241 242 243 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 241 def numeric @numeric end |
#text ⇒ Array<Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Text>
Description of the output labels in the data set.
Corresponds to the JSON property text
246 247 248 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 246 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
253 254 255 256 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 253 def update!(**args) @numeric = args[:numeric] if args.key?(:numeric) @text = args[:text] if args.key?(:text) end |