public class MinMaxNormConstraint extends BaseConstraint
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_RATE |
DEFAULT_EPSILON, dimensions, epsilon, params| Constructor and Description |
|---|
MinMaxNormConstraint(double min,
double max,
double rate,
int... dimensions)
Apply to weights but not biases by default
|
MinMaxNormConstraint(double min,
double max,
double rate,
Set<String> paramNames,
int... dimensions) |
MinMaxNormConstraint(double min,
double max,
int... dimensions)
Apply to weights but not biases by default
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.nd4j.linalg.api.ndarray.INDArray param) |
MinMaxNormConstraint |
clone() |
applyConstraint, getBroadcastDimsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParams, setParamspublic static final double DEFAULT_RATE
public MinMaxNormConstraint(double min,
double max,
int... dimensions)
max - Maximum L2 valuemin - Minimum 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 MinMaxNormConstraint(double min,
double max,
double rate,
int... dimensions)
max - Maximum L2 valuemin - Minimum L2 valuerate - Constraint ratedimensions - 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 MinMaxNormConstraint(double min,
double max,
double rate,
Set<String> paramNames,
int... dimensions)
max - Maximum L2 valuemin - Minimum L2 valuerate - Constraint rateparamNames - 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 void apply(org.nd4j.linalg.api.ndarray.INDArray param)
apply in class BaseConstraintpublic MinMaxNormConstraint clone()
clone in interface LayerConstraintclone in class BaseConstraintCopyright © 2018. All rights reserved.