ml.shifu.guagua.yarn.example.nn
类 NNUtils

java.lang.Object
  继承者 ml.shifu.guagua.yarn.example.nn.NNUtils

public final class NNUtils
extends Object

Helper class for NN distributed training.


方法摘要
static org.encog.neural.networks.BasicNetwork generateNetwork(int in, int hidden, int out)
          Generate basic NN network object
static void randomize(int seed, double[] weights)
           
static int sign(double value)
          Determine the sign of the value.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

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.

参数:
value - The value to check.
返回:
-1 if less than zero, 1 if greater, or 0 if zero.

randomize

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


Copyright © 2014. All Rights Reserved.