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;