hex
Class Trainer.Threaded

java.lang.Object
  extended by hex.Trainer
      extended by hex.Trainer.Threaded
Enclosing class:
Trainer

public static class Trainer.Threaded
extends Trainer

Runs several trainers in parallel on the same weights, using threads. Only works on one node. There is no synchronization, so some updates are lost. Works well in practice.


Nested Class Summary
 
Nested classes/interfaces inherited from class hex.Trainer
Trainer.Base, Trainer.Direct, Trainer.MapReduce, Trainer.OpenCL, Trainer.Threaded
 
Constructor Summary
Trainer.Threaded(Layer[] ls)
           
Trainer.Threaded(Layer[] ls, int steps, int cores)
           
 
Method Summary
 void cancel()
           
 long items()
           
 void join()
           
 Layer[] layers()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trainer.Threaded

public Trainer.Threaded(Layer[] ls)

Trainer.Threaded

public Trainer.Threaded(Layer[] ls,
                        int steps,
                        int cores)
Method Detail

layers

public Layer[] layers()
Specified by:
layers in class Trainer

items

public long items()
Overrides:
items in class Trainer

start

public void start()
Specified by:
start in class Trainer

join

public void join()
Specified by:
join in class Trainer

cancel

public void cancel()