Package samer.models

Interface Model.Trainer

    • Method Summary

      All Methods Instance Methods Abstract 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
      void oneshot()
      Must be equivalent to reset(); accumulate(); flush(); but can be optimised for non-batched training
      void reset()
      reset accumulators without updating parameters
    • Method Detail

      • accumulate

        void accumulate()
        collect statistics for parameter update
      • accumulate

        void accumulate(double w)
        weighted accumulate
      • flush

        void flush()
        use collected stats to update parameters and reset
      • oneshot

        void oneshot()
        Must be equivalent to reset(); accumulate(); flush(); but can be optimised for non-batched training
      • reset

        void reset()
        reset accumulators without updating parameters
      • dispose

        void dispose()