jsat.classifiers.neuralnetwork.initializers
Class TanhInitializer
- java.lang.Object
-
- jsat.classifiers.neuralnetwork.initializers.TanhInitializer
-
- All Implemented Interfaces:
- java.io.Serializable, BiastInitializer, WeightInitializer
public class TanhInitializer extends java.lang.Object implements WeightInitializer, BiastInitializer
This initializer samples the weights from an adjusted uniform distribution in order to provided better behavior of neuron activation and gradients
See: Glorot, X., & Bengio, Y. (2010). Understanding the difficulty of training deep feedforward neural networks. Journal of Machine Learning Research - Proceedings Track, 9, 249–256. Retrieved from here- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description TanhInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TanhInitializerclone()voidinit(Matrix w, java.util.Random rand)Initializes the values of the given weight matrixvoidinit(Vec b, int fanIn, java.util.Random rand)Performs the initialization of the given vector of bias values
-
-
-
Method Detail
-
init
public void init(Matrix w, java.util.Random rand)
Description copied from interface:WeightInitializerInitializes the values of the given weight matrix- Specified by:
initin interfaceWeightInitializer- Parameters:
w- the matrix to initializerand- the source of randomness for the initialization
-
init
public void init(Vec b, int fanIn, java.util.Random rand)
Description copied from interface:BiastInitializerPerforms the initialization of the given vector of bias values- Specified by:
initin interfaceBiastInitializer- Parameters:
b- the vector to store the biases infanIn- the number of connections coming into the layer that these biases are for.rand- the source of randomness for initialization
-
clone
public TanhInitializer clone()
- Specified by:
clonein interfaceBiastInitializer- Specified by:
clonein interfaceWeightInitializer- Overrides:
clonein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG