home *** CD-ROM | disk | FTP | other *** search
- csv3.1 !file format is Control Strategy Version 3.1
- ! Dec-88 (bckfast.nnc) Fast Back Propagation Network
- !************************************************************************
- !* *
- !* Fast Back Propagation Network Control Strategy *
- !* Similar to backprop except that calculated error is *
- !* added to output prior to delta weight calculation. *
- !* Suggested by Tariq Samad of Honeywell SSDC, 1000 Boone Ave. N., *
- !* Golden Valley, MN 55427. See abstract from INNS 1988 *
- !* conference proceedings. *
- !* *
- !************************************************************************
- !
- !MASK label op-code operands comment
- L_saR_sa trace aux3 ! 0 set trace option to aux3
- L_saR_sa optset op:bknc ! 1 back prop to Input PEs
- Li_aR_sa cset recall,1 ! 2 recall count
- !
- ! Get input (learn and recall) and desired output (learn only)
- !
- L_saR_sa lset in ! 3 input layer
- L___R_sa io read ! 4 get input data (recall)
- L_saR___ io lrnin ! 5 get input data (learn)
- L_saR_sa lset out ! 6 output layer
- L_saR___ io lrnout ! 7 get desired output (learn)
- L___R_sa io rcltst ! 8 get desired output (test)
- !
- ! Start with the first layer for a forward pass through network
- !
- L_saR_sa lset in ! 9 input layer
- L___R_sa @rloop math sum|rnoise|tran|output|e=0 ! 10
- L_saR___ math sum|lnoise|tran|output|e=0|fire ! 11
- L_saR_sa lset cur,1 ! 12 next layer
- L_saR_sa lcmp out ! 13 at output layer ?
- L_saR_sa blt @rloop ! 14 loop till done
- !
- ! Compute final outputs
- !
- L___R_sa math sum|rnoise|ce=e|tran|output|e-=w|swap !15 Recall
- L_saR___ math sum|lnoise|tran|output|e-=w|e*=ef|fire ! 16 learn
- !
- ! Write results to userio
- !
- L___R_sa io write ! 17 recall
- L_saR___ io lrnrslt ! 18 learn
- !
- ! Learn cycle - back propagate error. Store unscaled error in
- ! current error field.
- ! Modify output of processing elements with error
- !
- L_saR___ lset out ! 19 start with output layer
- L_saR___ math ce=e|e*=f'|backp|fire ! 20 process output layer
- L_saR___ br @skip ! 21 skip regression
- L_saR___ @loopa math ce=e|e*=f'|backp|fire ! 22 scale error & back prop
- L_saR___ math regress|fire ! 23 add error to tran
- L_saR___ math output|fire ! 24 update output
- L_saR___ @skip lset cur,-1 ! 25 previous layer
- L_saR___ lcmp in ! 26 at input layer ?
- L_saR___ bgt @loopa ! 27 loop till done
- L_saR___ lset out ! 28 set output layer
- !
- ! Update weights with "corrected" outputs
- !
- L_saR___ @loopb math learn|fire ! 29 learn based on updated outputs
- L_saR___ lset cur,-1 ! 30 previous layer
- L_saR___ lcmp in ! 31 at input layer ?
- L_saR___ bgt @loopb ! 32 loop till done
- LisaRisa trace 0 ! 33 turn off any trace function
-