Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!h2g2000vbd.googlegroups.com!not-for-mail
From: Greg Heath <heath@alumni.brown.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to specify initial weight & bias
Date: Wed, 4 Nov 2009 17:22:15 -0800 (PST)
Organization: http://groups.google.com
Lines: 27
Message-ID: <6a37872f-758d-4926-a45d-6b3ff5b7fc50@h2g2000vbd.googlegroups.com>
References: <hcrel8$hkq$1@fred.mathworks.com>
NNTP-Posting-Host: 69.141.163.135
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257384136 9647 127.0.0.1 (5 Nov 2009 01:22:16 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 5 Nov 2009 01:22:16 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: h2g2000vbd.googlegroups.com; posting-host=69.141.163.135; 
	posting-account=mUealwkAAACvQrLWvunjg50tRAnsNtJR
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
	2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:582582


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}
> net.b{1}

net.lw{2,1}

Hope this helps.

Greg