Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to specify initial weight & bias
Date: Thu, 5 Nov 2009 03:00:22 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <hctf46$b6j$1@fred.mathworks.com>
References: <hcrel8$hkq$1@fred.mathworks.com> <6a37872f-758d-4926-a45d-6b3ff5b7fc50@h2g2000vbd.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257390022 11475 172.30.248.38 (5 Nov 2009 03:00:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 5 Nov 2009 03:00:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2076038
Xref: news.mathworks.com comp.soft-sys.matlab:582596


Greg Heath <heath@alumni.brown.edu> wrote in message <6a37872f-758d-4926-a45d-6b3ff5b7fc50@h2g2000vbd.googlegroups.com>...
> On Nov 4, 3:40?am, "aurikel Radzali" <suriar...@gmail.com> wrote:
> > I am a student who work on prediction of protein concentration using neural network. When i'm using mlp/feedforward neural network, the result vary every time I run the simulation. Someone said that it happen because in the training, the initial value for the weight and bias are set randomly (default) by the Matlab. I can specify it if i want. Does anyone know how to specify the weight & bias?
> 
> Yes. However stick to the MATLAB default. To reproduce runs
> reset the random generator to the same state.
> 
> state0 = 2009
> rand('state',state0)
> > AR=[11]; ? % [hidden node]
> > PR=[minmax(P)];
> > net=newff(P,T,AR,{'tansig'  'purelin'}, 'trainlm');
> 
> net = newff(P,T,AR); % Using defaults
> 
> > net.iw{1,1}


Thanks, it really help..
> > net.b{1}
> 
> net.lw{2,1}
> 
> Hope this helps.
> 
> Greg