Class WeightNoise
- java.lang.Object
-
- org.deeplearning4j.nn.conf.weightnoise.WeightNoise
-
- All Implemented Interfaces:
Serializable
,Cloneable
,IWeightNoise
public class WeightNoise extends Object implements IWeightNoise
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WeightNoise(Distribution distribution)
WeightNoise(Distribution distribution, boolean additive)
WeightNoise(Distribution distribution, boolean applyToBias, boolean additive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightNoise
clone()
INDArray
getParameter(Layer layer, String paramKey, int iteration, int epoch, boolean train, LayerWorkspaceMgr workspaceMgr)
Get the parameter, after applying weight noise
-
-
-
Constructor Detail
-
WeightNoise
public WeightNoise(Distribution distribution)
- Parameters:
distribution
- Distribution for additive noise
-
WeightNoise
public WeightNoise(Distribution distribution, boolean additive)
- Parameters:
distribution
- Distribution for noiseadditive
- If true: noise is added to weights. If false: noise is multiplied by weights
-
WeightNoise
public WeightNoise(Distribution distribution, boolean applyToBias, boolean additive)
- Parameters:
distribution
- Distribution for noiseapplyToBias
- If true: apply to biases also. If false (default): apply only to weightsadditive
- If true: noise is added to weights. If false: noise is multiplied by weights
-
-
Method Detail
-
getParameter
public INDArray getParameter(Layer layer, String paramKey, int iteration, int epoch, boolean train, LayerWorkspaceMgr workspaceMgr)
Description copied from interface:IWeightNoise
Get the parameter, after applying weight noise- Specified by:
getParameter
in interfaceIWeightNoise
- Parameters:
layer
- Layer to get the parameter forparamKey
- Parameter keyiteration
- Iteration numberepoch
- Epoch numbertrain
- If true: training. False: at test time- Returns:
- Parameter, after applying weight noise
-
clone
public WeightNoise clone()
- Specified by:
clone
in interfaceIWeightNoise
- Overrides:
clone
in classObject
-
-