Class: Google::Apis::PredictionV1_2::Update

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_labelString

The true class label of this instance Corresponds to the JSON property classLabel

Returns:

  • (String)


218
219
220
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 218

def class_label
  @class_label
end

#csv_instanceArray<Object>

The input features for this instance Corresponds to the JSON property csvInstance

Returns:

  • (Array<Object>)


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