Class: Google::Apis::PredictionV1_2::Update
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_2::Update
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_2/classes.rb,
generated/google/apis/prediction_v1_2/representations.rb,
generated/google/apis/prediction_v1_2/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
225 226 227 |
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 225 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
218 219 220 |
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 218 def class_label @class_label end |
#csv_instance ⇒ Array<Object>
The input features for this instance
Corresponds to the JSON property csvInstance
223 224 225 |
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 223 def csv_instance @csv_instance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
230 231 232 233 |
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 230 def update!(**args) @class_label = args[:class_label] if args.key?(:class_label) @csv_instance = args[:csv_instance] if args.key?(:csv_instance) end |