Documentation of 'recunn.trainer.Trainer' Java class
Trainer
recunn.trainer

Class Trainer



  • public class Trainer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      Trainer() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double pass(double learningRate, Model model, java.util.List<DataSequence> sequences, boolean applyTraining, Loss lossTraining, Loss lossReporting) 
      static double train(int trainingEpochs, double learningRate, Model model, DataSet data, int reportEveryNthEpoch, boolean initFromSaved, boolean overwriteSaved, java.lang.String savePath, java.util.Random rng) 
      static double train(int trainingEpochs, double learningRate, Model model, DataSet data, int reportEveryNthEpoch, java.util.Random rng) 
      static void updateModelParams(Model model, double stepSize) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • decayRate

        public static double decayRate
      • smoothEpsilon

        public static double smoothEpsilon
      • gradientClipValue

        public static double gradientClipValue
      • regularization

        public static double regularization
    • Constructor Detail

      • Trainer

        public Trainer()
    • Method Detail

      • train

        public static double train(int trainingEpochs,
                                   double learningRate,
                                   Model model,
                                   DataSet data,
                                   int reportEveryNthEpoch,
                                   java.util.Random rng)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • train

        public static double train(int trainingEpochs,
                                   double learningRate,
                                   Model model,
                                   DataSet data,
                                   int reportEveryNthEpoch,
                                   boolean initFromSaved,
                                   boolean overwriteSaved,
                                   java.lang.String savePath,
                                   java.util.Random rng)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • pass

        public static double pass(double learningRate,
                                  Model model,
                                  java.util.List<DataSequence> sequences,
                                  boolean applyTraining,
                                  Loss lossTraining,
                                  Loss lossReporting)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • updateModelParams

        public static void updateModelParams(Model model,
                                             double stepSize)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.