AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Nearal Network gives different results on repeat

The forum is to discuss topics from different artificial intelligence areas, like neural networks, genetic algorithms, machine learning, etc.

Nearal Network gives different results on repeat

Postby Lawrence » Tue May 17, 2016 11:36 am

Hi,

I am using a version of the code in TimeSeries demo.

I notice that I get different solutions(slightly) when I run the demo several times.

Is there a hidden random element in compute that might cause this?
Lawrence
 
Posts: 24
Joined: Tue May 17, 2016 11:32 am

Re: Nearal Network gives different results on repeat

Postby andrew.kirillov » Tue May 17, 2016 3:03 pm

Hello,

Neurons' weights are randomly initialized. If you need same results, you need to set Neuron.RandGenerator every time before running a test with a new network.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3379
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: Nearal Network gives different results on repeat

Postby Lawrence » Tue May 17, 2016 3:41 pm

That's perfect.

Thank you
Lawrence
 
Posts: 24
Joined: Tue May 17, 2016 11:32 am




Return to Artificial Intelligence

cron