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(INDArray param) |
MinMaxNormConstraint |
clone() |
applyConstraint, getBroadcastDims
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParams, setParams
public 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(INDArray param)
apply
in class BaseConstraint
public MinMaxNormConstraint clone()
clone
in interface LayerConstraint
clone
in class BaseConstraint
Copyright © 2018. All rights reserved.