How do I display the connection weights after each epoch for a perceptron network using MATLAB code?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I need to know how the weights changes after each epoch. How do I display the connection weights?
0 Kommentare
Akzeptierte Antwort
Mark Hudson Beale
am 19 Apr. 2011
The function PLOTWB displays weights and biases graphically.
plotwb(net)
You can attach this function to any network object, and watch the weights change as training progresses as in this example:
[x,t] = house_dataset;
net = feedforwardnet(10);
net.plotFcns = [net.plotFcns {'plotwb'}];
net = train(net,x,t); % Click the "Hinton Weight Bias" plot button while training.
There isn't a standard way to display numerical values during training, but you can create a custom version of the training function your network uses. I.e. make a custom version of whatever function "net.trainFcn" points to which displays weight and bias values at the command line each epoch and then set "net.trainFcn" to point to your custom function.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!