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(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, waitgetParams, setParamspublic static final double DEFAULT_EPSILON
protected double epsilon
protected int[] dimensions
public void applyConstraint(Layer layer, int iteration, int epoch)
LayerConstraintapplyConstraint in interface LayerConstraintlayer - org.deeplearning4j.nn.api.Layeriteration - given iteration as integerepoch - current epoch as integerpublic abstract void apply(INDArray param)
public abstract BaseConstraint clone()
clone in interface LayerConstraintclone in class Objectpublic static int[] getBroadcastDims(int[] reduceDimensions,
int rank)
Copyright © 2020. All rights reserved.