function Back_propagate()
expected# = T_NEURONS#(1)
Results# = O_NEURONS#(1)
ERROR# = expected# - Results#
cost# = .5*(Error#*Error#)
//________________________________Partial Derivative of the Sigmoid Function______________________________
//The partial derivative of the logistic function is the output multiplied by 1 minus the output:
O_DELTA#(1) = (O_NEURONS#(1) * (1 - O_NEURONS#(1))) * (cost#)
//___________________________________________________________________________________________________
//net01 = (weight2#(1,1) * H_NEURONS#(1) )
For x = 1 to h_num
weights2#(x,1) = weights2#(x,1) +(L_C * H_NEURONS#(x) * O_DELTA#(1))
// H_DELTA#(x) = H_NEURONS#(x)*(1-H_NEURONS#(x) * Weights2#(x,1) * O_DELTA#(1))
H_DELTA#(x) = (H_NEURONS#(x)* (1-H_NEURONS#(x)) * cost#)
print H_DELTA#(x) //<------------------------------------------------------------------------------ THIS OR THE WAIT KEY comman is not working, not only that but H_DELTA Value keeps showing up as 0 like its not
wait key // Even Seeing this section of code however the Weights2#(x,y) as showing up. I have sat here for hours to see that it seems to be not reading the code at all... WHY
next
//net01/weights2#(1,1) =
//weight2#(x,1) = weight2#(x,1) - (L_C * (-(O_delta#(1) * H_NEURONS#(x)))
//weights2#(x,1) = weights2#(x,1) - (L_C * H_NEURONS#(x) * O_DELTA#(1))
// O_DELTA#(1) = (O_NEURONS#(1) * (1 - O_NEURONS#(1))) * (cost#)
for X = 1 to num_h
FOR Y = 1 to num_i
weights1#(y,x) = weights1#(y,x) + (L_C * I_NEURONS#(y) * H_DELTA#(x))
next
next
endfunction
Um... Anyone ever seen DBPro just up and totally skip code for no apparent reason?
For x = 1 to h_num
weights2#(x,1) = weights2#(x,1) +(L_C * H_NEURONS#(x) * O_DELTA#(1))
// H_DELTA#(x) = H_NEURONS#(x)*(1-H_NEURONS#(x) * Weights2#(x,1) * O_DELTA#(1))
H_DELTA#(x) = (H_NEURONS#(x)* (1-H_NEURONS#(x)) * cost#)
print H_DELTA#(x) //<-----------------------------THIS OR THE WAIT KEY comman is not working, not only that but H_DELTA Value keeps showing up as 0 like its not
wait key // Even Seeing this section of code however the Weights2#(x,y) are showing up. I have sat here for hours to see that it seems to be not reading the code at all... WHY
next