切换到宽版
  • 广告投放
  • 稿件投递
  • 繁體中文
    • 3298阅读
    • 0回复

    [求助]新手求助~(关于初级的神经网络问题) [复制链接]

    上一主题 下一主题
    离线continue
     
    发帖
    2
    光币
    11
    光券
    0
    只看楼主 倒序阅读 楼主  发表于: 2010-05-03
    各位大虾,我在网上看到的教程里的一个程序段,本来想要试试看的: G0!6rDu2,  
    net=newff([-1 2; 0 5],[3,1],{'tansig','purelin'},'traingd'); CN(-Jd.b  
    net.trainParam.show = 50; *g*"bi*  
    net.trainParam.lr = 0.05; _*UI}JtlS  
    net.trainParam.epochs = 300; c/88|k  
    net.trainParam.goal = 1e-5; ^f>c_[fR  
    p = [-1 -1 2 2;0 5 0 5]; mC@v,"  
    t = [-1 -1 1 1]; ;+ C$EJw-  
    net=train(net,p,t); 9IXy96]]6  
    TRAINGD, Epoch 0/300, MSE 1.59423/1e-05, Gradient 2.76799/1e-10 ~zfF*A  
    TRAINGD, Epoch 50/300, MSE 0.00236382/1e-05, Gradient 0.0495292/1e-10 A-L1vu;  
    TRAINGD, Epoch 100/300, MSE 0.000435947/1e-05, Gradient 0.0161202/1e-10 0p[k7W u  
    TRAINGD, Epoch 150/300, MSE 8.68462e-05/1e-05, Gradient 0.00769588/1e-10 4G:~|N.{p  
    TRAINGD, Epoch 200/300, MSE 1.45042e-05/1e-05, Gradient 0.00325667/1e-10 3r#['UmT  
    TRAINGD, Epoch 211/300, MSE 9.64816e-06/1e-05, Gradient 0.00266775/1e-10 ! (lF#MG}  
    TRAINGD, Performance goal met. 6p }a!  
    a = sim(net,p) cZ)JvU9]  
    plot(p,t,p,a,'o') ? ch?q~e)  
    但是为什么老是报错: dH5*%  
    ??? Input argument "net" is undefined. vTFG*\Cq  
     
    分享到