public class ConstantInit extends Object implements BiastInitializer
Constructor and Description |
---|
ConstantInit(double c) |
Modifier and Type | Method and Description |
---|---|
ConstantInit |
clone() |
double |
getConstant() |
void |
init(Vec b,
int fanIn,
Random rand)
Performs the initialization of the given vector of bias values
|
void |
setConstant(double c) |
public ConstantInit(double c)
c
- the constant to set all biases topublic void setConstant(double c)
c
- the constant value to usepublic double getConstant()
public 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 ConstantInit clone()
clone
in interface BiastInitializer
clone
in class Object
Copyright © 2017. All rights reserved.