Class: Google::Apis::PredictionV1_5::Update

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

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



695
696
697
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 695

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


683
684
685
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 683

def csv_instance
  @csv_instance
end

#labelString

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

Returns:

  • (String)


688
689
690
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 688

def label
  @label
end

#outputString

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

Returns:

  • (String)


693
694
695
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 693

def output
  @output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



700
701
702
703
704
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 700

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