public class UnitNormConstraint extends BaseConstraint
DEFAULT_EPSILON, dimensions, epsilon, params| Constructor and Description |
|---|
UnitNormConstraint(int... dimensions)
Apply to weights but not biases by default
|
UnitNormConstraint(Set<String> paramNames,
int... dimensions) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(INDArray param) |
UnitNormConstraint |
clone() |
applyConstraint, getBroadcastDimsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParams, setParamspublic UnitNormConstraint(int... dimensions)
dimensions - 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 UnitNormConstraint(Set<String> paramNames, int... dimensions)
dimensions - 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 UnitNormConstraint clone()
clone in interface LayerConstraintclone in class BaseConstraintCopyright © 2020. All rights reserved.