home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / e / e065 / 1.ddi / ADALINE.INS next >
Encoding:
Text File  |  1991-08-28  |  2.8 KB  |  107 lines

  1. inst4.0        !17:43 29-May-88  (adaline.ins)  Adaline Network Builder
  2. !****************************************************************
  3. !*                                *
  4. !*    Adaline Network Generator                *
  5. !*                                *
  6. !****************************************************************
  7.  
  8. !    *** check that input / output PE count is non-zero
  9.  
  10. ?&In    1
  11. >bge    CheckOut
  12. @Err    "Adaline MUST have at least one input PE"
  13. :CheckOut
  14. ?&Out    1
  15. >bge    OutOK
  16. @Err    "Adaline MUST have at least one output PE"
  17. :OutOK
  18.  
  19. !    *** Load the Control Strategy and LRS if needed
  20.  
  21. @LdCS    "adaline"        !control strategy
  22. @LdLR    "adaline"        !L/R schedule
  23.  
  24. =netn    "InstaNet (tm) Adaline Network version 1.00 20-Jun-88"
  25. =DLnF    0            !learn  re-display off
  26. =DRcF    0            !recall re-display off
  27.  
  28. !    *** Build the Input Layer ***
  29.  
  30. @LLdf                !load default layer to mi_layer structure
  31. =LDln    "In"            !layer name
  32. =Lpes    &In            !copy # of input PEs from menu
  33. !=Ltrn    "Signum"        !signum transfer function
  34. =x    100            !place to put layer on screen
  35. =y     80
  36. #Incl    "stdnwgtf.iif"        !standard # weight fields
  37. @LAdd                !add the input layer
  38.  
  39. !    *** Build the Adaline Layer ***
  40.  
  41. @LLdf                !start with default layer again
  42. =LDln    "Adaline"        !adaline layer name
  43. =Lpes    &Out            !same as the number of output PEs
  44. =Ltrn    "Signum"        !transfer function
  45. =Llrn    "Adaline"        !adaline learning rule
  46. +y    80            !up higher on display
  47. #Incl    "stdnwgtf.iif"        !standard # weight fields
  48. @LAdd
  49.  
  50. !    *** Connect Adaline Layer to Bias & Input Layers ***
  51.  
  52. =SPEl    1            !current layer
  53. @SlPE                !select it as destination (sb already)
  54. =NPEl    -1            !near to bias term (source)
  55. @NrPE
  56. =cnwt    1.0            !connection weight
  57. =cnty    WVar            !variable
  58. =cnsc    WAbs            !absolute
  59. @LCFl
  60. =NPEl    0            !input layer
  61. @NrPE
  62. @LCFl
  63.  
  64. !    *** Build the output layer & connect it to prior layer ***
  65.  
  66. @LLdf                !load default layer to mi_layer structure
  67. =LDln    "Out"            !layer name
  68. =Lpes    &Out            !copy # of input PEs from menu
  69. +y    80
  70. #Incl    "stdnwgtf.iif"        !standard # weight fields
  71. @LAdd                !add the output layer
  72. =n7    LayN            !save for stdprobe
  73. =SPEl    2            !output layer
  74. @SlPE
  75. =NPEl    1            !adaline layer
  76. @NrPE
  77. =cnty    WFix            !fixed weight
  78. =cnsc    WRel
  79. @LCCr                !connect corresponding
  80.  
  81. !    *** Select Control Strategy & L/R Schedule ***
  82.  
  83. @LLsl                !load super layer
  84. =Lctl    "adaline"        !adaline control strategy
  85. =Llrs    "adaline"        !adaline L/R Schedule
  86. =Llnn    "adaline"        !name of learn input
  87. =Lrcn    "adaline"        !name of recall output
  88. #Incl    "stdioset.iif"        !standard I/O settings
  89. =Lscl    -1            !input  low-value
  90. =Loff     1            !input  high-value
  91. =Llow    -1            !output low-value
  92. =Lhgh     1            !output high-value
  93. @SVsl                !save it back
  94. !
  95. =n5    -1.0
  96. =n6    1.0
  97. =n4    &Out
  98. #Incl    "stdprobe.iif"        !Standard probe include file
  99. !
  100. =jogl    -.1            !lower limit for jog
  101. =jogh    +.1            !upper limit for jog
  102. =seed    257            !starting seed number
  103. @seed                !set the seed
  104. @Nini                !randomize the network
  105.  
  106. @EOF
  107.