How can I update my newff functions to the updated functions feedforwardnet or patternnet?
2 ビュー (過去 30 日間)
古いコメントを表示
I have been using "newff" in a neural network code and it works fine but gives the error message
Warning: NEWFF used in an obsolete way.
> In obs_use at 17
In newff>create_network at 126
In newff at 101
In Sarah_Genome_02 at 95
See help for NEWFF to update calls to the new argument list.
When you go to help, it recommends using feedforwardnet instead.
The program runs fine, but since it is obsolete I figured I should work towards updating it, I'm fairly new at MATLAB and can't quite seem to figure it out. It would be appreciated if anyone could help me out.
% construct an ANN with two hidden layers
net=newff(range,[hn1 hn2 1],{'logsig' 'logsig' 'logsig'}, 'trainlm');
% Set up training parameters
net.TrainParam.epochs=itr;
net.TrainParam.goal=arr;
net.TrainParam.min_grad=0.1*10^(-15);
採用された回答
Greg Heath
2015 年 3 月 10 日
編集済み: Greg Heath
2015 年 3 月 10 日
1. One hidden layer is sufficient
2. Use all of the defaults
3. Minimal code is available in the documentation
help fitnet
doc fitnet
4. More sophisticated code ia available in many of my posts. Try searching in the NEWSGROUP before searching in ANSWERS. Search using
greg fitnet
Hope this helps.
Thank you for formally accepting my answer
Greg
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!