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)
IWeightNoisegetParameter in interface IWeightNoiselayer - Layer to get the parameter forparamKey - Parameter keyiteration - Iteration numberepoch - Epoch numbertrain - If true: training. False: at test timepublic WeightNoise clone()
clone in interface IWeightNoiseclone in class ObjectCopyright © 2021. All rights reserved.