Class: Google::Apis::PredictionV1_3::Update
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_3::Update
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_3/classes.rb,
generated/google/apis/prediction_v1_3/representations.rb,
generated/google/apis/prediction_v1_3/representations.rb
Instance Attribute Summary collapse
-
#class_label ⇒ String
The true class label of this instance Corresponds to the JSON property
classLabel
. -
#csv_instance ⇒ Array<Object>
The input features for this instance Corresponds to the JSON property
csvInstance
.
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
274 275 276 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 274 def initialize(**args) update!(**args) end |
Instance Attribute Details
#class_label ⇒ String
The true class label of this instance
Corresponds to the JSON property classLabel
267 268 269 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 267 def class_label @class_label end |
#csv_instance ⇒ Array<Object>
The input features for this instance
Corresponds to the JSON property csvInstance
272 273 274 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 272 def csv_instance @csv_instance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
279 280 281 282 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 279 def update!(**args) @class_label = args[:class_label] if args.key?(:class_label) @csv_instance = args[:csv_instance] if args.key?(:csv_instance) end |