```Path: news.mathworks.com!not-for-mail
From: "Greg Heath" <heath@alumni.brown.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Weight variance
Date: Fri, 2 Mar 2012 07:26:12 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <jipsmk\$mr7\$1@newscl01ah.mathworks.com>
References: <jilhp7\$5cs\$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1330673172 23399 172.30.248.37 (2 Mar 2012 07:26:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 2 Mar 2012 07:26:12 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:759557

"Maitrei" wrote in message <jilhp7\$5cs\$1@newscl01ah.mathworks.com>...
> hi,
>
> please help me in understanding how can weights be initialized within a user defined range. For example I want my net to have weights between range of +0.5 to -0.5. How can we do this in NN toolbox?
>
> Thanksb

1. Look at the summary statistics (min,median,mean,std and max) of initial weights
in 100 self-initialized MATLAB designs and determine if that seems to be a good idea.

2. Take a look at my post on initial weights. Search on

heath nonsaturating initial weights

3. If you still want to do it, just after the net creation statement

net = newff(...);

overwrite the self initialized values with your random values

net.IW =...
net.LW =...
net.b = ...

Hope this helps.

Greg

designs net.IW.net.LW and net.b
```