public class WeightInitSigmoidUniform extends Object implements IWeightInit
WeightInitXavierUniform for sigmoid activation functions. U(-r,r) with r=4sqrt(6/(fanIn + fanOut))DEFAULT_WEIGHT_INIT_ORDER| Constructor and Description |
|---|
WeightInitSigmoidUniform() |
| Modifier and Type | Method and Description |
|---|---|
INDArray |
init(double fanIn,
double fanOut,
long[] shape,
char order,
INDArray paramView)
Initialize parameters in the given view.
|
public INDArray init(double fanIn, double fanOut, long[] shape, char order, INDArray paramView)
IWeightInitinit in interface IWeightInitfanIn - Number of input parametersfanOut - Number of output parametersshape - Desired shape of array (users shall assume paramView has this shape after method has finished)order - Order of array, e.g. Fortran ('f') or C ('c')paramView - View of parameters to initialize (and reshape)Copyright © 2020. All rights reserved.