Class: Google::Apis::PredictionV1_5::Input::Input

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/prediction_v1_5/classes.rb,
generated/google/apis/prediction_v1_5/representations.rb,
generated/google/apis/prediction_v1_5/representations.rb

Overview

Input to the model for a prediction

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) ⇒ Input

Returns a new instance of Input



379
380
381
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 379

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#csv_instanceArray<Object>

A list of input features, these can be strings or doubles. Corresponds to the JSON property csvInstance

Returns:

  • (Array<Object>)


377
378
379
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 377

def csv_instance
  @csv_instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



384
385
386
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 384

def update!(**args)
  @csv_instance = args[:csv_instance] if args.key?(:csv_instance)
end