public class TanhInitializer extends Object implements WeightInitializer, BiastInitializer
Constructor and Description |
---|
TanhInitializer() |
Modifier and Type | Method and Description |
---|---|
TanhInitializer |
clone() |
void |
init(Matrix w,
Random rand)
Initializes the values of the given weight matrix
|
void |
init(Vec b,
int fanIn,
Random rand)
Performs the initialization of the given vector of bias values
|
public void init(Matrix w, Random rand)
WeightInitializer
init
in interface WeightInitializer
w
- the matrix to initializerand
- the source of randomness for the initializationpublic void init(Vec b, int fanIn, Random rand)
BiastInitializer
init
in interface BiastInitializer
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 initializationpublic TanhInitializer clone()
clone
in interface BiastInitializer
clone
in interface WeightInitializer
clone
in class Object
Copyright © 2017. All rights reserved.