how can I access the weight??? and bias??
Ältere Kommentare anzeigen
hi I am a beginer. after design a perceptron neural network how can I access the weight??? and bias?? I dont mean sim(net). Kindly guide me. Thanks,
Akzeptierte Antwort
Weitere Antworten (1)
Greg Heath
am 28 Aug. 2014
clear all, clc
[x,t] = simplefit_dataset;
net = fitnet;
rng(0)
net = train(net,x,t);
IW = net.IW{1,1}
b1 = net.b{1}
LW = net.LW{2,1}
b2 = net.b{2}
whos IW b1 LW b2
Hope this helps.
Thank you for formally accepting my answer
Greg
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!