jeffheaton / encog-java-core

http://www.heatonresearch.com/encog
Other
744 stars 268 forks source link

LevenbergMarquardtTraining threading issue #197

Closed otearle closed 9 years ago

otearle commented 9 years ago

Hi, I'm using LevenbergMarquardtTraining in my project and whenever I don't set the thread count of HessianCR to 1, my application never exits. I'm not sure if this is an issue with LevenbergMarquardtTraining or HessianCR or something else entirely.

I'm using the latest release (3.3.0)

jeffheaton commented 9 years ago

Do you have a call to:

Encog.getInstance().shutdown();

Just before your app exits? Failure to do this will cause the thread pool to never spin down and the app won't exit due to daemon threads.

otearle commented 9 years ago

That's fixed it, thanks a lot :)