Package samer.models

Class ICA.ON3Trainer

    • Constructor Summary

      Constructors 
      Constructor and Description
      ON3Trainer() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void accumulate()
      collect statistics for parameter update
      void accumulate(double w)
      weighted accumulate
      void dispose() 
      void flush()
      use collected stats to update parameters and reset
      Matrix getGMatrix()
      this is so you can manipulate the matrix before flushing
      void oneshot()
      Must be equivalent to reset(); accumulate(); flush(); but can be optimised for non-batched training
      void reset()
      reset accumulators without updating parameters
      void run() 
      void starting() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ON3Trainer

        public ON3Trainer()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getGMatrix

        public Matrix getGMatrix()
        this is so you can manipulate the matrix before flushing
      • run

        public void run()
        Specified by:
        run in interface Task
      • oneshot

        public void oneshot()
        Description copied from interface: Model.Trainer
        Must be equivalent to reset(); accumulate(); flush(); but can be optimised for non-batched training
        Specified by:
        oneshot in interface Model.Trainer
      • reset

        public void reset()
        Description copied from interface: Model.Trainer
        reset accumulators without updating parameters
        Specified by:
        reset in interface Model.Trainer
      • accumulate

        public void accumulate()
        Description copied from interface: Model.Trainer
        collect statistics for parameter update
        Specified by:
        accumulate in interface Model.Trainer
      • flush

        public void flush()
        Description copied from interface: Model.Trainer
        use collected stats to update parameters and reset
        Specified by:
        flush in interface Model.Trainer