Search code examples
javamultithreadingneural-networkencog

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?


Solution

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

    Propagation train = new Propagation(network,data);
    train.setThreadCount(1);