Class: Google::Apis::PredictionV1_3::Update

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

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



274
275
276
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 274

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)


267
268
269
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 267

def class_label
  @class_label
end

#csv_instanceArray<Object>

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

Returns:

  • (Array<Object>)


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