Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force single-threaded ANN training

I have a BasicNetwork that I will use in ensemble learning. I appreciate Encog's multithreaded training that it uses by default for neural networks, but how can I configure the network or the trainer to train on a single thread only?

like image 392
Simon Kuang Avatar asked Jun 18 '26 18:06

Simon Kuang


1 Answers

In Encog 3.3, you can use the setThreadCount method like this

Propagation train = new Propagation(network,data);
train.setThreadCount(1);
like image 199
Ortomala Lokni Avatar answered Jun 21 '26 08:06

Ortomala Lokni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!