Thread Subject: how to specify initial weight & bias

Subject: how to specify initial weight & bias

From: aurikel Radzali

Date: 4 Nov, 2009 08:40:08

Message: 1 of 3

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}

Subject: how to specify initial weight & bias

From: Greg Heath

Date: 5 Nov, 2009 01:22:15

Message: 2 of 3

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

Subject: how to specify initial weight & bias

From: aurikel Radzali

Date: 5 Nov, 2009 03:00:22

Message: 3 of 3

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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
initial weight ... aurikel Radzali 4 Nov, 2009 03:44:13
mlp aurikel Radzali 4 Nov, 2009 03:44:12
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com