home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / Demos_Files / Code_Generation / Embedded training.nsm < prev    next >
Encoding:
Text File  |  2002-03-08  |  2.7 KB  |  71 lines

  1. subtitleTextBox. setText ("")
  2. mainTextBox. setText ("")
  3.  
  4. activeOutputProbe. closeEngineWindow (  )
  5.  
  6. inputFile. setFlashFileMode ( 1 )
  7. activeOutputProbe. setFlashFileMode ( 2 )
  8.  
  9. activeBreadboard. setAnimatePoint ( 470 , 210 )
  10. activeBreadboard. stampAndMove ( "L2Criterion" , "criterion" )
  11. outputAxon. connectTo ( "criterion" )
  12. activeBreadboard. stampOnAndMove ( "BackStaticControl" , "control" )
  13. controlBackprop. setGradientClassName ( "Momentum" )
  14. controlBackprop. allocateBackpropPlane (  )
  15.  
  16. activeBreadboard. select ( "hidden1SynapseBackpropGradient" , FALSE )
  17. activeBreadboard. select ( "hidden1AxonBackpropGradient" , TRUE )
  18. activeBreadboard. select ( "outputSynapseBackpropGradient" , TRUE )
  19. activeBreadboard. select ( "outputAxonBackpropGradient" , TRUE )
  20. activeSelection. setStepSize ( 0.300000 )
  21. activeSelection. setMomentumRate ( 0.700000 )
  22.  
  23. activeBreadboard. stampOnAndMove ( "File" , "criterion" )
  24. file. setName ("desiredFile")
  25. desiredFile. setActiveAccessPoint ( "Desired Signal" )
  26. desiredFilePath = macro. pathFromMacro ( "xor.asc" )
  27. desiredFile. addFile ( desiredFilePath , FALSE )
  28. desiredFile. setUseDefaultTranslatorForActiveFile ( FALSE , FALSE )
  29. desiredFile. setActiveTranslatorName ( "ASCII - Column" , FALSE )
  30. desiredFile. beginCustomizeOfActiveFile (  )
  31. desiredFile. setSkipForActiveFile ( 0 , 0 )
  32. desiredFile. setSkipForActiveFile ( 1 , 1 )
  33. desiredFile. endCustomizeOfActiveFile ( FALSE )
  34. desiredFile. setNormalize ( FALSE )
  35. desiredFile. translate (  )
  36.  
  37. activeOutputProbe. moveOn ( "criterion" )
  38. activeOutputProbe. setName ( "activeCostProbe" )
  39. activeCostProbe. setActiveAccessPoint ( "Average Cost" )
  40. activeCostProbe. setLabel ( "Cost" )
  41.  
  42. activeBreadboard. lockWindowUpdate()
  43.  
  44. activeBreadboard. select ( "viewSourceCode" , FALSE )
  45. viewSourceCode. moveTo ( 630 , 125 )
  46.  
  47. activeBreadboard. runMacro ( CreateLargeButtonMacroPath )
  48. controlButton. setName ( "viewWeights" )
  49. viewWeights. setText ( "View weights" )
  50. viewWeights. moveTo ( 630 , 90 )
  51. ControlMacroPath = macro. pathFromMacro ( "viewWeights.nsm" )
  52. viewWeights. setMacroPath ( ControlMacroPath )
  53.  
  54. activeBreadboard. unlockWindowUpdate()
  55.  
  56. SourcePath = macro. pathFromMacro ( "xorTraining.cpp" )
  57. control. setCodeGenProjectPath ( SourcePath )
  58.  
  59. ControlMacroPath = macro. pathFromMacro ( "viewSourceCode3.nsm" )
  60. viewSourceCode. setMacroPath ( ControlMacroPath )
  61.  
  62. activeBreadboard. select ( NULL , FALSE )
  63.  
  64. control. setEpochs ( 100 )
  65. control. setLearning ( FALSE )
  66.  
  67. NextMacroPath = macro. pathFromMacro ( "Testing within NeuroSolutions.nsm" )
  68. nextButton. setMacroPath ( NextMacroPath )
  69. SubtitleIndex = subtitleTextBox. setTextFromFile (TextBoxPath, SubtitleIndex)
  70. MainIndex = mainTextBox. setTextFromFile (TextBoxPath, MainIndex)
  71.