Constraints
Mapping of Keras weight constraints to DL4J LayerConstraint implementations for model import in Eclipse Deeplearning4j 1.0.0-M2.1.
Supported Constraints
Keras constraint
DL4J LayerConstraint
Description
Constraint Descriptions
max_norm
# Keras
from keras.constraints import max_norm
layer = Dense(64, kernel_constraint=max_norm(2.0))// DL4J equivalent
new MaxNormConstraint(2.0, 1)Parameter
Default
Description
non_neg
unit_norm
min_max_norm
Parameter
Default
Description
Usage Example
Notes
Last updated
Was this helpful?