public abstract class BaseConstraint extends Object implements LayerConstraint
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_EPSILON |
protected int[] |
dimensions |
protected double |
epsilon |
protected Set<String> |
params |
Modifier | Constructor and Description |
---|---|
protected |
BaseConstraint() |
protected |
BaseConstraint(Set<String> paramNames,
int... dimensions) |
Modifier and Type | Method and Description |
---|---|
abstract void |
apply(org.nd4j.linalg.api.ndarray.INDArray param) |
void |
applyConstraint(Layer layer,
int iteration,
int epoch)
Apply a given constraint to a layer at each iteration
in the provided epoch, after parameters have been updated.
|
abstract BaseConstraint |
clone() |
static int[] |
getBroadcastDims(int[] reduceDimensions,
int rank) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParams, setParams
public static final double DEFAULT_EPSILON
protected double epsilon
protected int[] dimensions
public void applyConstraint(Layer layer, int iteration, int epoch)
LayerConstraint
applyConstraint
in interface LayerConstraint
layer
- org.deeplearning4j.nn.api.Layeriteration
- given iteration as integerepoch
- current epoch as integerpublic abstract void apply(org.nd4j.linalg.api.ndarray.INDArray param)
public abstract BaseConstraint clone()
clone
in interface LayerConstraint
clone
in class Object
public static int[] getBroadcastDims(int[] reduceDimensions, int rank)
Copyright © 2018. All rights reserved.