public class DropConnect extends Object implements IWeightNoise
Constructor and Description |
---|
DropConnect(double weightRetainProbability) |
DropConnect(double weightRetainProbability,
boolean applyToBiases) |
DropConnect(ISchedule weightRetainProbSchedule) |
DropConnect(ISchedule weightRetainProbSchedule,
boolean applyToBiases) |
Modifier and Type | Method and Description |
---|---|
DropConnect |
clone() |
INDArray |
getParameter(Layer layer,
String paramKey,
int iteration,
int epoch,
boolean train,
LayerWorkspaceMgr workspaceMgr)
Get the parameter, after applying weight noise
|
public DropConnect(double weightRetainProbability)
weightRetainProbability
- Probability of retaining a weightpublic DropConnect(double weightRetainProbability, boolean applyToBiases)
weightRetainProbability
- Probability of retaining a weightapplyToBiases
- If true: apply to biases (default: weights only)public DropConnect(ISchedule weightRetainProbSchedule)
weightRetainProbSchedule
- Probability (schedule) of retaining a weightpublic DropConnect(ISchedule weightRetainProbSchedule, boolean applyToBiases)
weightRetainProbSchedule
- Probability (schedule) of retaining a weightapplyToBiases
- If true: apply to biases (default: weights only)public 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 DropConnect clone()
clone
in interface IWeightNoise
clone
in class Object
Copyright © 2022. All rights reserved.