Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: weight in neural network
Replies: 1   Last Post: May 2, 2013 4:06 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
srishti

Posts: 12
Registered: 9/15/12
weight in neural network
Posted: May 1, 2013 11:44 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello Sir,
Sir if i have tried the following code, the problem if I generate W1 and W2 then weights net.IW{1,1} and net.LW{2,1} are diffrenet and if i dont use W1 and W2 then net.IW{1,1} and net.LW{2,1} are different. Sir how the weights are related
with W1 and W2 ?


s = RandStream('mcg16807','Seed', 0);
RandStream.setDefaultStream(s)
x=sinimfin; %input
t=t; %target
S1=1; % number of hidden layers
S2=2; % number of output layers (= number of classes)
[R,Q]=size(x);
W1= rand(S1,R);
W2= rand(S2,S1);
net = patternnet(4);
net = train(net,x,t);
% view(net)
y=net(x);
plotconfusion(t,y);
perf=mse(y-t);



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.