public class GRUParamInitializer extends Object implements ParamInitializer
| Modifier and Type | Field and Description | 
|---|---|
| static String | BIAS_KEY | 
| static String | INPUT_WEIGHT_KEY | 
| static String | RECURRENT_WEIGHT_KEYWeights for previous time step -> current time step connections | 
| Constructor and Description | 
|---|
| GRUParamInitializer() | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,org.nd4j.linalg.api.ndarray.INDArray> | getGradientsFromFlattened(NeuralNetConfiguration conf,
                         org.nd4j.linalg.api.ndarray.INDArray gradientView)Return a map of gradients (in their standard non-flattened representation), taken from the flattened (row vector) gradientView array. | 
| void | init(Map<String,org.nd4j.linalg.api.ndarray.INDArray> params,
    NeuralNetConfiguration conf,
    org.nd4j.linalg.api.ndarray.INDArray paramsView,
    boolean initializeParams)Initialize the parameters | 
| int | numParams(NeuralNetConfiguration conf,
         boolean backprop) | 
public static final String RECURRENT_WEIGHT_KEY
public static final String BIAS_KEY
public static final String INPUT_WEIGHT_KEY
public int numParams(NeuralNetConfiguration conf, boolean backprop)
numParams in interface ParamInitializerpublic void init(Map<String,org.nd4j.linalg.api.ndarray.INDArray> params, NeuralNetConfiguration conf, org.nd4j.linalg.api.ndarray.INDArray paramsView, boolean initializeParams)
ParamInitializerinit in interface ParamInitializerparams - the map (initially empty) that will contain a view of the 'paramsView' arrayconf - the configurationparamsView - a view of the full network (backprop) parametersinitializeParams - if true: initialize the parameters according to the configuration. If false: don't modify the
                         values in the paramsView array (but do select out the appropriate subset, reshape etc as required)public Map<String,org.nd4j.linalg.api.ndarray.INDArray> getGradientsFromFlattened(NeuralNetConfiguration conf, org.nd4j.linalg.api.ndarray.INDArray gradientView)
ParamInitializer#init(Map, NeuralNetConfiguration, INDArray);
 thus the position in the view (and, the array orders) must match those of the parametersgetGradientsFromFlattened in interface ParamInitializerconf - ConfigurationgradientView - The flattened gradients array, as a view of the larger arrayCopyright © 2016. All Rights Reserved.