Package org.encog.engine.concurrency

Examples of org.encog.engine.concurrency.DetermineWorkload


  /**
   * Init the process.
   */
  private void init() {

    final DetermineWorkload determine = new DetermineWorkload(
        this.numThreads, (int) this.indexable.getRecordCount());

    this.workers = new FlatGradientWorker[determine.getThreadCount()];

    int index = 0;

    // handle CPU
    for (final IntRange r : determine.calculateWorkers()) {
      this.workers[index++] = new GradientWorkerCPU(this.network.clone(),
          this, this.indexable.openAdditional(), r.getLow(),
          r.getHigh());
    }
  }
View Full Code Here

TOP

Related Classes of org.encog.engine.concurrency.DetermineWorkload

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.