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

  1. inst4.0        ! 17-4-89  boltzcmp.ins
  2. !****************************************************************
  3. !*                                *
  4. !*    Boltzman Network Generator - Completion Model        *
  5. !*                                *
  6. !****************************************************************
  7.  
  8. !    *** check that input PE count is non-zero
  9.  
  10. ?&In    1
  11. >bge    CheckHid
  12. @Err    "Boltzmann completion model MUST have at least one input PE"
  13. :CheckHid
  14. ?&Hd1    1
  15. >bge    HidOK
  16. @Err    "Boltzmann completion model MUST have at least one hidden PE"
  17. :HidOK
  18.  
  19. !    *** Load the Control Strategy and LRS if needed
  20.  
  21. @LdCS    "boltzcmp"        !control strategy
  22. @LdLR    "boltzman"        !L/R schedule
  23.  
  24. =netn    "InstaNet (tm) Boltzmann Network (Completion Model) version 1.00 17-04-89"
  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    "StepFunction"        !transfer function
  34. =x    100            !place to put layer on screen
  35. =y     50
  36. #Incl    "stdnwgtf.iif"        !standard # weight fields
  37. @LAdd                !add the input layer
  38. =n0    LayN            !track input layer
  39.  
  40. !    *** Build the Boltzmann Layer ***
  41.  
  42. @LLdf                !start with default layer again
  43. =LDln    "Boltzmann"        !layer name
  44. =Lpes    &In            !desired number of PEs
  45. +Lpes    &Hd1
  46. =Ltrn    "Boltzmann"        !transfer function
  47. =Llrn    "Boltzmann"        !learning rule
  48. =Llrs    "boltzman"        !L/R schedule
  49. =LInL    0.0            !low initialization limit
  50. =LInH    0.0            !high initialization limit
  51. +y    170            !up higher on display
  52. #Incl    "stdnwgtf.iif"        !standard # weight fields
  53. @LAdd
  54. =n1    LayN            !track Boltzmann layer
  55.  
  56. !    *** Connect input layer to Boltzmann layer ***
  57.  
  58. =SPEl    LayN            !current layer
  59. @SlPE
  60. =NPEl    n0            !input layer
  61. @NrPE
  62. =cnwt    1.0            !unit weight
  63. =cnsc    WRel
  64. =cnty    WSet
  65. @LCCr                !connect corresponding items
  66.  
  67. !    *** Connect Boltzmann layer to itself ***
  68.  
  69. =NPEl    LayN
  70. @NrPE
  71. =cnwt    0.0            !zero weights
  72. =cnty    WVar            !trainable
  73. =cnsc    WAbs
  74. @LCFl                !fully connect (except diagonal)
  75.  
  76. !    *** Connect the bias to the Boltzmann layer ***
  77.  
  78. =NPEl    -1
  79. @NrPE
  80. =cnwt    0.0            !zero weights
  81. =cnty    WVar            !trainable
  82. =cnsc    WAbs
  83. @LCFl                !fully connect (except diagonal)
  84.  
  85. !    *** Build the Output Layer ***
  86.  
  87. @LLdf                !start with default layer again
  88. =LDln    "Output"        !layer name
  89. =Lpes    &In            !desired number of PEs
  90. =Ltrn    "StepFunction"        !transfer function
  91. =LInL    0.0            !low initialization limit
  92. =LInH    0.0            !high initialization limit
  93. +y    60            !up higher on display
  94. #Incl    "stdnwgtf.iif"        !standard # weight fields
  95. @LAdd
  96. =n7    LayN            !save for stdprobe
  97. =n2    LayN            !track output layer
  98.  
  99. !    *** Connect the Boltzmann layer to the Output layer ***
  100.  
  101. =SPEl    LayN            !output layer
  102. @SlPE
  103. =NPEl    n1            !Boltzmann layer
  104. @NrPE
  105. =cnwt    1.0            !set weight to 1.0
  106. =cnty    WFix            !fixed weight
  107. =cnsc    WRel            !relative connections
  108. @LCCr                !Boltzmann to output connections
  109.  
  110. @LLsl                !load super layer
  111. =Lctl    "boltzcmp"        !control strategy
  112. =Llnn    "boltzman"        !name of learn input
  113. =Lrcn    "boltzman"        !name of recall output
  114. #Incl    "stdioset.iif"        !standard I/O settings
  115. =Lax1    10            !nominal number of accumulations
  116. =Lax2    10            !nominal number of firings per iteration
  117. =Lax3    20            !nominal # of iterations for collecting stats
  118. +Lflg    LAAs            !auto-associative network
  119. =Lscl    -1            !input  low-value
  120. =Loff     1            !input  high-value
  121. =Llow     0            !output low-value
  122. =Lhgh     1            !output high-value
  123. @SVsl                !save it back
  124. !
  125. =n5    0.0
  126. =n6    1.0
  127. =n4    &In
  128. #Incl    "stdprobe.iif"        !Standard probe include file
  129. !
  130. =jogl    -.1            !lower limit for jog
  131. =jogh    +.1            !upper limit for jog
  132. =seed    257            !starting seed number
  133. @seed                !set the seed
  134. @Nini                !initialize the network
  135. @EOF
  136.