Class: Google::Apis::PredictionV1_6::Insert::TrainingInstance

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/prediction_v1_6/classes.rb,
generated/google/apis/prediction_v1_6/representations.rb,
generated/google/apis/prediction_v1_6/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) ⇒ TrainingInstance

Returns a new instance of TrainingInstance.



465
466
467
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 465

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

Instance Attribute Details

#csv_instanceArray<Object>

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

Returns:

  • (Array<Object>)


458
459
460
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 458

def csv_instance
  @csv_instance
end

#outputString

The generic output value - could be regression or class label. Corresponds to the JSON property output

Returns:

  • (String)


463
464
465
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 463

def output
  @output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



470
471
472
473
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 470

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