class BackPropogation::ComputationalGates::SummGate
Attributes
in_frst[RW]
in_scnd[RW]
Public Class Methods
new(name)
click to toggle source
Calls superclass method
BackPropogation::ComputationalGates::CompGate::new
# File lib/ml_algorithms.rb, line 121 def initialize(name) super(name) end
Public Instance Methods
backward_pass()
click to toggle source
# File lib/ml_algorithms.rb, line 134 def backward_pass() @in_frst.bckwrd = @bckwrd @in_scnd.bckwrd = @bckwrd end
connect(f_n,s_n)
click to toggle source
# File lib/ml_algorithms.rb, line 124 def connect(f_n,s_n) @in_frst = f_n @in_scnd = s_n f_n.out = self s_n.out = self end
forward_pass()
click to toggle source
# File lib/ml_algorithms.rb, line 131 def forward_pass() @frwrd = @in_frst.frwrd + @in_scnd.frwrd end