public class WeightNoise extends Object implements IWeightNoise
Constructor and Description |
---|
WeightNoise(Distribution distribution) |
WeightNoise(Distribution distribution,
boolean additive) |
WeightNoise(Distribution distribution,
boolean applyToBias,
boolean additive) |
Modifier and Type | Method and Description |
---|---|
WeightNoise |
clone() |
INDArray |
getParameter(Layer layer,
String paramKey,
int iteration,
int epoch,
boolean train,
LayerWorkspaceMgr workspaceMgr)
Get the parameter, after applying weight noise
|
public WeightNoise(Distribution distribution)
distribution
- Distribution for additive noisepublic WeightNoise(Distribution distribution, boolean additive)
distribution
- Distribution for noiseadditive
- If true: noise is added to weights. If false: noise is multiplied by weightspublic WeightNoise(Distribution distribution, boolean applyToBias, boolean additive)
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 weightspublic INDArray getParameter(Layer layer, String paramKey, int iteration, int epoch, boolean train, LayerWorkspaceMgr workspaceMgr)
IWeightNoise
getParameter
in interface IWeightNoise
layer
- Layer to get the parameter forparamKey
- Parameter keyiteration
- Iteration numberepoch
- Epoch numbertrain
- If true: training. False: at test timepublic WeightNoise clone()
clone
in interface IWeightNoise
clone
in class Object
Copyright © 2020. All rights reserved.