public class MaxNormConstraint extends BaseConstraint
DEFAULT_EPSILON, dimensions, epsilon, params| Constructor and Description |
|---|
MaxNormConstraint(double maxNorm,
int... dimensions)
Apply to weights but not biases by default
|
MaxNormConstraint(double maxNorm,
Set<String> paramNames,
int... dimensions) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(INDArray param) |
MaxNormConstraint |
clone() |
applyConstraint, getBroadcastDimsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParams, setParamspublic MaxNormConstraint(double maxNorm,
Set<String> paramNames,
int... dimensions)
maxNorm - Maximum L2 valueparamNames - Which parameter names to apply constraint todimensions - Dimensions to apply to. For DenseLayer, OutputLayer, RnnOutputLayer, LSTM, etc: this should
be dimension 1. For CNNs, this should be dimensions [1,2,3] corresponding to last 3 of
parameters which have order [depthOut, depthIn, kH, kW]public MaxNormConstraint(double maxNorm,
int... dimensions)
maxNorm - Maximum L2 valuedimensions - Dimensions to apply to. For DenseLayer, OutputLayer, RnnOutputLayer, LSTM, etc: this should
be dimension 1. For CNNs, this should be dimensions [1,2,3] corresponding to last 3 of
parameters which have order [depthOut, depthIn, kH, kW]public void apply(INDArray param)
apply in class BaseConstraintpublic MaxNormConstraint clone()
clone in interface LayerConstraintclone in class BaseConstraintCopyright © 2020. All rights reserved.