Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Weight variance

Subject: Weight variance

From: Maitrei

Date: 29 Feb, 2012 15:55:19

Message: 1 of 2

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?

Thanks

Subject: Weight variance

From: Greg Heath

Date: 2 Mar, 2012 07:26:12

Message: 2 of 2

"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

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us