Package org.deeplearning4j.nn.api.layers
Interface LayerConstraint
-
- All Superinterfaces:
Cloneable,Serializable
- All Known Implementing Classes:
BaseConstraint,MaxNormConstraint,MinMaxNormConstraint,NonNegativeConstraint,UnitNormConstraint
public interface LayerConstraint extends Cloneable, Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyConstraint(Layer layer, int iteration, int epoch)Apply a given constraint to a layer at each iteration in the provided epoch, after parameters have been updated.LayerConstraintclone()Set<String>getParams()voidsetParams(Set<String> params)Set the parameters that this layer constraint should be applied to
-
-
-
Method Detail
-
applyConstraint
void applyConstraint(Layer layer, int iteration, int epoch)
Apply a given constraint to a layer at each iteration in the provided epoch, after parameters have been updated.- Parameters:
layer- org.deeplearning4j.nn.api.Layeriteration- given iteration as integerepoch- current epoch as integer
-
setParams
void setParams(Set<String> params)
Set the parameters that this layer constraint should be applied to- Parameters:
params- Parameters that the layer constraint should be applied to
-
getParams
Set<String> getParams()
- Returns:
- Set of parameters that this layer constraint will be applied to
-
clone
LayerConstraint clone()
-
-