神经网络仿真模块的设计编写

 

 
  
  1. <html xmlns="http://www.w3.org/DTD1999/xhtml"> 
  2.      <html> 
  3.          <head> 
  4.             <meta http-equiv="content-Iype" content="text/html;  
  5.          charset=GB2312"> 
  6.             <a href="http://www.cmpbook.com/images"> 
  7.          <title>神经网络系统</title> 
  8.             <script dd="stylesheet" _blank=br object createpopup  buttom="设计神经网络"></a> 
        从神经网络系统截取应用预设值的一个有效想象的空间来进行编写,是有效的产生一块仿真模块。并合成我们需想要的的一个应用       仿真的模块。以下是设想来设计一个预设值仿真模块的编写作题:      
 
  
  1. load netL7.mat            %加载net7.mat文件  
  2.                    
  3.  然后再输入命令:  
  4.      
  5.    net  
  6.  
  7.  以输出的预设值为:  
  8.    
  9.    net=  
  10.         
  11.        Neural Network object:  
  12.  表决以应用的函数预设值列序为:  
  13.    
  14.        architecture  
  15.        numlnputs:1  
  16.      biasConnect:[1;1]  
  17.     inputconnect:[1;0]  
  18.     layerConnect:[0 0;1 0]  
  19.    outputConnect:[0 1]  
  20.     
  21.        numOutputs:1 (read-only)  
  22.    numlnputDelays:0 (read-only)  
  23.    numLayerDelays:0 (read-only)  
  24.  
  25. 加载生成神经网络的函数预设值所得运行程序依次入列序  
  26.    suboject stuctures:  
  27.      
  28.             inputs:{1×1 cell} of inputs  
  29.             layers:{2×1 cell} of layers  
  30.            outputs:{1×2 cell} containing 1 output  
  31.             biases:{2×1 cell} containing 2 biases  
  32.        inputWeight:{2×1 cell} containing 1 input weight  
  33.       layerWeights:{2×2 cell} containing 1 layer weight  
  34.              
  35.    functions:  
  36.  
  37.            adaptFen:'trains'  
  38.           divideFcn:(none)  
  39.         gradientFcn:'gdefaults'  
  40.             initFcn:'initlay'  
  41.          performFcn:'mse'  
  42.            plotFcns:{'plotperform','plottrainstate','plotregression'}  
  43.            trainFcn:'trainbfg'  
  44.    
  45.    parameters:  
  46.   生成列序神经网络的加载预设值产生的结果,形成列序预设值产生加载在window中   
  47.      
  48.        adaptParam:passes  
  49.       divideParam:(none)  
  50.      gradienParam:(none)  
  51.         initParam:(none)  
  52.      performParam:(none)  
  53.        tainParam:.show,.showWindow,.showCommandLine,.epochs,  
  54.                     .time,.goal,.max_fail,.min_beta,  
  55.                     .searchFcn,.scale_tol,.alpha,.beta,  
  56.                     .delta,.gama,.low_lim,.up_lim,  
  57.                     .maxstep,.minstep,.bmax,.batch_frag  
  58.  
  59.      weight and bias values:  
  60.                     IW:{2×1 cell} containing 1 input weight matrix  
  61.                     LW:{2×2 cell} containing 1 layer weight matrix  
  62.                      b:{2×1 cell} containing 2 bias vectors  
  63.     
  64.     other:  
  65.     
  66.                   name:"  
  67.                userdata:(user information)  
  68.    在命令窗口加载设计好的神经网络后,以gensim函数生成神经网络仿真模块,在命令窗口中输入:  
  69.                 
  70.              gensim(net,-1)   注意: 仿真模块在设计过程中也是有一定的设想,比如要建设一座高楼大夏建筑工程好必要启用一个牢固的地层地基, 把关好地质基础,才会建成一座很好的漂亮让人耳目一新的高楼。