Class: Google::Apis::PredictionV1_4::Update
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_4::Update
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_4/classes.rb,
generated/google/apis/prediction_v1_4/representations.rb,
generated/google/apis/prediction_v1_4/representations.rb
Instance Attribute Summary collapse
-
#csv_instance ⇒ Array<Object>
The input features for this instance Corresponds to the JSON property
csvInstance
. -
#label ⇒ String
The class label of this instance Corresponds to the JSON property
label
. -
#output ⇒ String
The generic output value - could be regression value or class label Corresponds to the JSON property
output
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Update
constructor
A new instance of Update.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Update
Returns a new instance of Update
323 324 325 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 323 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
311 312 313 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 311 def csv_instance @csv_instance end |
#label ⇒ String
The class label of this instance
Corresponds to the JSON property label
316 317 318 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 316 def label @label end |
#output ⇒ String
The generic output value - could be regression value or class label
Corresponds to the JSON property output
321 322 323 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 321 def output @output end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
328 329 330 331 332 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 328 def update!(**args) @csv_instance = args[:csv_instance] if args.key?(:csv_instance) @label = args[:label] if args.key?(:label) @output = args[:output] if args.key?(:output) end |