public class ResidualClippingPostProcessor extends Object implements ResidualPostProcessor
| Constructor and Description |
|---|
ResidualClippingPostProcessor(double thresholdMultipleClipValue,
int frequency) |
| Modifier and Type | Method and Description |
|---|---|
ResidualClippingPostProcessor |
clone() |
void |
processResidual(int iteration,
int epoch,
double lastThreshold,
INDArray residualVector) |
public ResidualClippingPostProcessor(double thresholdMultipleClipValue,
int frequency)
thresholdMultipleClipValue - The multiple of the current threshold to use for clipping. A value of C means
that the residual vector will be clipped to the range [-C*T, C*T] for the current
threshold Tfrequency - Frequency with which to apply the clippingpublic void processResidual(int iteration,
int epoch,
double lastThreshold,
INDArray residualVector)
processResidual in interface ResidualPostProcessoriteration - Current iterationepoch - Current epochlastThreshold - Last threshold that was usedresidualVector - The current residual vector. Should be modified in-placepublic ResidualClippingPostProcessor clone()
clone in interface ResidualPostProcessorclone in class ObjectCopyright © 2021. All rights reserved.