Class: Google::Apis::PredictionV1_5::Training::TrainingInstance
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_5::Training::TrainingInstance
- 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
-
#csv_instance ⇒ Array<Object>
The input features for this instance Corresponds to the JSON property
csvInstance
. -
#output ⇒ String
The generic output value - could be regression or class label Corresponds to the JSON property
output
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TrainingInstance
constructor
A new instance of TrainingInstance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TrainingInstance
Returns a new instance of TrainingInstance
664 665 666 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 664 def initialize(**args) update!(**args) end |
Instance Attribute Details
#csv_instance ⇒ Array<Object>
The input features for this instance
Corresponds to the JSON property csvInstance
657 658 659 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 657 def csv_instance @csv_instance end |
#output ⇒ String
The generic output value - could be regression or class label
Corresponds to the JSON property output
662 663 664 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 662 def output @output end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
669 670 671 672 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 669 def update!(**args) @csv_instance = args[:csv_instance] if args.key?(:csv_instance) @output = args[:output] if args.key?(:output) end |