how i can save the output of hidden layer of neural network
Show older comments
after i complete my program,i want to save the output,weight and bias of hidden layer of neural network, can any one help me to do this? thanks
Accepted Answer
More Answers (1)
Greg Heath
on 13 Apr 2013
Edited: Greg Heath
on 13 Apr 2013
clear all, clc
[ x, t ] = simplefit_dataset;
net0 = fitnet( 10 );
[ net0 tr0 y0 ] = train( net0, x, t);
whos
%You can save the output and net
save y0 net0
%Delete them
clear y0 net0
whos
%and retrieve them
load y0 net0
whos
%or save, delete and and retrieve the weights
W0 = getwb(net0)
save y0 W0
whos
clear y0 W0
whos
load y0 W0
whos
Hope this helps.
Thank you for formally accepting my answer
Greg
2 Comments
Ahmed almansory
on 13 Apr 2013
manel
on 21 Apr 2014
hi ; I have the same problem ; if you have solve it can you pleez say me what you have done. thanks in advance
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!