Class EncodingHandler

    • Method Detail

      • encodeUpdates

        public INDArray encodeUpdates​(int iteration,
                                      int epoch,
                                      INDArray updates)
      • applyPostProcessor

        public void applyPostProcessor​(int iteration,
                                       int epoch,
                                       Double lastThreshold,
                                       INDArray residuals)
      • sendMessage

        protected void sendMessage​(INDArray message,
                                   int iterationNumber,
                                   int epochNumber)
        This method does loops encoded data back to updates queue
        Parameters:
        message -
      • broadcastUpdates

        public boolean broadcastUpdates​(INDArray updates,
                                        int iterationNumber,
                                        int epochNumber)
        Description copied from interface: MessageHandler
        This method does broadcast of given update message across network
        Specified by:
        broadcastUpdates in interface MessageHandler
        Returns:
        TRUE if something was sent, FALSE otherwise
      • logThresholdIfReq

        protected void logThresholdIfReq​(boolean denseUpdates,
                                         int iter,
                                         int epoch)
      • residualDebugOutputIfRequired

        protected void residualDebugOutputIfRequired​(INDArray residual)
      • format

        protected static String format​(double d)
      • getAverageThresholdAlgorithm

        public ThresholdAlgorithm getAverageThresholdAlgorithm()
        This should ONLY be called once all training threads have completed
        Returns: