2011-12-10 11 views
2

私はこのネットワークをテスト入力データ用にシミュレートするときにnewhop関数を使用してHopfiledネットワークを訓練しました。[y,Pf,Af] = sim(net,{1 repeatnum},{},{im1});正常に動作していますが、入力引数として反復回数例えば100反復。ネットワークは例えば5回目の反復で入力データに収束し、シミュレーションを続行する必要はありません。ネットワークの収束までシミュレートする方法はありますか?ホップフィールドシミュレーション関数のヘルプが必要

よろしくお願いいたします。

答えて

1

net.adaptParam.goalを参照してください。

net.adaptFcnnet.adaptParamを正しく設定し、help nntrainの助けを借りて設定します。 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).