Class: BackPropogation::ComputationalGates::CompGate

Inherits:
Object
  • Object
show all
Defined in:
lib/ml_algorithms.rb

Direct Known Subclasses

DivGate, MultGate, SummGate

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ CompGate

Returns a new instance of CompGate.



114
115
116
117
# File 'lib/ml_algorithms.rb', line 114

def initialize(name)
  @name = name
  @frwrd = self
end

Instance Attribute Details

#bckwrdObject

Returns the value of attribute bckwrd.



113
114
115
# File 'lib/ml_algorithms.rb', line 113

def bckwrd
  @bckwrd
end

#frwrdObject

Returns the value of attribute frwrd.



113
114
115
# File 'lib/ml_algorithms.rb', line 113

def frwrd
  @frwrd
end

#nameObject

Returns the value of attribute name.



113
114
115
# File 'lib/ml_algorithms.rb', line 113

def name
  @name
end

#outObject

Returns the value of attribute out.



113
114
115
# File 'lib/ml_algorithms.rb', line 113

def out
  @out
end