Class NNUtils


  • public final class NNUtils
    extends Object
    Helper class for NN distributed training.
    • Method Detail

      • generateNetwork

        public static org.encog.neural.networks.BasicNetwork generateNetwork​(int in,
                                                                             int hidden,
                                                                             int out)
        Generate basic NN network object
      • sign

        public static int sign​(double value)
        Determine the sign of the value.
        Parameters:
        value - The value to check.
        Returns:
        -1 if less than zero, 1 if greater, or 0 if zero.
      • randomize

        public static void randomize​(int seed,
                                     double[] weights)