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:
setx and newff.. two networks, the same setx parameters but different sim results..

Subject: setx and newff.. two networks, the same setx parameters but different sim results..

From: Mehmet Demirel

Date: 9 Oct, 2012 12:04:08

Message: 1 of 1

Hello,

I test two cases,

1) create a network using nntool and train it and simulate for a test data
Result1 = sim(network1,IN);
keep the parameters using getx(network1)

2) create a network and apply the same parameters found in step 1.
network2 = newfit(IN,OUT,numHiddenNeurons,{'tansig' , 'purelin'},'trainlm');
network2 = setx(net,network1);
Result2 = sim(network2,IN);

Result1 is different than Results2. Why could be the reason? The network parameters (weights and biases) are the same. Only visible difference is in the functions part. I am not sure if this part is causing the different simulation results?


CASE 1:

 <a href="matlab:doc nnproperty.net_adaptFcn">adaptFcn</a>: '<a href="matlab:doc adaptwb">adaptwb</a>'
        <a href="matlab:doc nnproperty.net_adaptParam">adaptParam</a>: (none)
          <a href="matlab:doc nnproperty.net_derivFcn">derivFcn</a>: '<a href="matlab:doc defaultderiv">defaultderiv</a>'
         <a href="matlab:doc nnproperty.net_divideFcn">divideFcn</a>: (none)
       <a href="matlab:doc nnproperty.net_divideParam">divideParam</a>: (none)
        <a href="matlab:doc nnproperty.net_divideMode">divideMode</a>: 'sample'





CASE 2:
  <a href="matlab:doc nnproperty.net_adaptFcn">adaptFcn</a>: '<a href="matlab:doc adaptwb">adaptwb</a>'
        <a href="matlab:doc nnproperty.net_adaptParam">adaptParam</a>: (none)
          <a href="matlab:doc nnproperty.net_derivFcn">derivFcn</a>: '<a href="matlab:doc defaultderiv">defaultderiv</a>'
         <a href="matlab:doc nnproperty.net_divideFcn">divideFcn</a>: (none)
       <a href="matlab:doc nnproperty.net_divideParam">divideParam</a>: (none)
        <a href="matlab:doc nnproperty.net_divideMode">divideMode</a>: 'sample'


Regards,
Mehmet
rhinelowflows.nl

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