home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MATH / VISSIM.ZIP / XORGR.VSM < prev    next >
Text File  |  1993-05-12  |  2KB  |  73 lines

  1. ; VisSim Block Diagram Format (VBDF)
  2. ; Copyright (C) 1989-1993 Visual Solutions
  3. PV=1.200
  4. PS=0
  5. PE=3
  6. PP=1
  7. PI=172
  8. PX=1
  9. PN=1e-006
  10. PF=10
  11. Pc=10
  12. PD=640x480
  13. Pf=0x0
  14. Ps=1257,0,0,873,0,0
  15. Pd=17
  16. PM=1,1,1,1
  17. N.1="xor"@150x252
  18. N.2="plot"@324x70@294x147
  19. pt="Actual xor results"
  20. px="Time (sec)"
  21. pax=2
  22. pf=H
  23. pf=F
  24. pb=1,-1
  25. pbx=3,0
  26. pbY=0,0
  27. pbX=0,0
  28. pc=512
  29. pm=10
  30. pb.0=0,0
  31. pb.1=0,0
  32. pb.2=0.05,-0.05
  33. pb.3=0,0
  34. N.3="neuralNet"@222x294#3,1
  35. n="xorgr.net"
  36. UP=2,1,2,1,4,1,0.05,0.9,0,1,0,100,4
  37. N.4="Compound"@42x308#0,1<C>
  38. n="t1"
  39. Ms=1248,0,0,852,0,0
  40. N.5="Compound"@48x322#0,1<C>
  41. n="t1"
  42. Ms=432,0,0,203,0,0
  43. N.6="plot"@324x231@294x147
  44. pt="neural net xor"
  45. px="Time (sec)"
  46. pax=2
  47. pf=H
  48. pc=512
  49. pm=10
  50. N.7="comment"@0x0@292x161
  51. C="Neural Net Xor example for the General Regression method.
  52.  
  53. To start training the net, select Simulate/Go from the menu above. The simulation is set to go 4 steps, counting to 3 in binary as training input to the net. When the simulation is finished, click the right mouse button over the xorgr.net block, and turn off \"Learn\".  Click on OK, and rerun the simulation. You will see the learned xor results come out of xorgr.net, and see the difference between the neural net results and the builtin xor operator results in VisSim in the upper plot.
  54.  
  55. The xor function is a classical eample of a neural net learning a nonlinear function.  At one time it was thought that neural nets were not capable of learning the simple xor function."
  56. N.8="summingJunction"(0)@258x182
  57. N.9="pulseTrain"(1,2)@486x203<M>
  58. N.10="step"(2,1)@348x203<M>
  59. I.1.i1=4.o1
  60. I.1.i2=5.o1
  61. I.2.i4=8.o1
  62. I.3.i1=1.o1
  63. I.3.i2=4.o1
  64. I.3.i3=5.o1
  65. G.4=10,
  66. I.4.o1=10.o1
  67. G.5=9,
  68. I.5.o1=9.o1
  69. I.6.i3=3.o1
  70. I.8.i1=1.o1
  71. f8.2.i=-
  72. I.8.i2=3.o1
  73.