How do you fit a Neural net with weight decay using the train function?
5 ビュー (過去 30 日間)
古いコメントを表示
I want to fit a Neural net for Regression and I'd like to use weight decay so I don't have to worry about using too many nodes. The neural nets I've fit so far have been with the train function and I don't see a weight decay option. I see one if I use trainingOptions with trainNetwork, but that's appears to be mostly for image classification and requires defining each of the layers of the network.
I'm hoping there is something like this available.
netOptions = fitnet(10, 'trainbr');
netOptions.trainParam.weightDecay = 0.1;
0 件のコメント
回答 (1 件)
Greg Heath
2018 年 6 月 28 日
Well, have you tried it ?
See
help trainbr
and
doc trainbr
Thank you for formally accepting my answer
Greg
参考
カテゴリ
Help Center および File Exchange で Image Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!