Interface Trainer

    • Method Detail

      • feedMultiDataSet

        void feedMultiDataSet​(@NonNull
                              @NonNull org.nd4j.linalg.dataset.api.MultiDataSet dataSet,
                              long etlTime)
        Train on a MultiDataSet
        Parameters:
        dataSet - the data set to train on
      • feedDataSet

        void feedDataSet​(@NonNull
                         @NonNull org.nd4j.linalg.dataset.api.DataSet dataSet,
                         long etlTime)
        Train on a DataSet
        Parameters:
        dataSet - the data set to train on
      • updateModelParams

        void updateModelParams​(org.nd4j.linalg.api.ndarray.INDArray params)
        This method updates replicated model params
        Parameters:
        params -
      • updateUpdaterParams

        void updateUpdaterParams​(org.nd4j.linalg.api.ndarray.INDArray params)
        This method updates updater params of the replicated model
        Parameters:
        params -
      • getModel

        org.deeplearning4j.nn.api.Model getModel()
        THe current model for the trainer
        Returns:
        the current Model for the worker
      • updateModel

        void updateModel​(@NonNull
                         @NonNull org.deeplearning4j.nn.api.Model model)
        Update the current Model for the worker
        Parameters:
        model - the new model for this worker
      • isRunning

        boolean isRunning()
      • shutdown

        void shutdown()
        Shutdown this worker
      • waitTillRunning

        void waitTillRunning()
        Block the main thread till the trainer is up and running.
      • start

        void start()
        Start this trainer
      • averagingRequired

        boolean averagingRequired()
        This method returns TRUE if this Trainer implementation assumes periodic aver
        Returns: