2011-12-10 151 views
2

我已經訓練了Hopfiled網絡使用newhop函數,當我模擬我的測試輸入數據網絡,[y,Pf,Af] = sim(net,{1 repeatnum},{},{im1});它工作正常,但問題是它獲得迭代次數作爲輸入參數例如100次迭代。網絡可能會在第5次迭代中收斂於輸入數據,因此不需要繼續進行仿真。有沒有什麼方法可以模擬網絡的融合?需要幫助Hopfield模擬功能

問候!

回答

1

結賬net.adaptParam.goal

如有必要,請根據help nntrain的幫助正確設置net.adaptFcnnet.adaptParam

help traingd

Training stops when any of these conditions occurs: 
1) The maximum number of EPOCHS (repetitions) is reached. 
2) The maximum amount of TIME has been exceeded. 
3) Performance has been minimized to the GOAL. 
4) The performance gradient falls below MINGRAD. 
5) Validation performance has increased more than MAX_FAIL times 
    since the last time it decreased (when using validation).