Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: how to specify initial weight & bias
Date: Wed, 4 Nov 2009 08:40:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <hcrel8$hkq$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257324008 18074 172.30.248.35 (4 Nov 2009 08:40:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 08:40:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2076038
Xref: news.mathworks.com comp.soft-sys.matlab:582290


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? 


AR=[11];   % [hidden node]
PR=[minmax(P)];
net=newff(P,T,AR,{'tansig'  'purelin'}, 'trainlm');
net.iw{1,1}
net.b{1}