public class GaussianDropout extends Object implements IDropout
| Modifier | Constructor and Description |
|---|---|
|
GaussianDropout(double rate) |
protected |
GaussianDropout(double rate,
ISchedule rateSchedule) |
|
GaussianDropout(ISchedule rateSchedule) |
| Modifier and Type | Method and Description |
|---|---|
INDArray |
applyDropout(INDArray inputActivations,
INDArray output,
int iteration,
int epoch,
LayerWorkspaceMgr workspaceMgr) |
INDArray |
backprop(INDArray gradAtOutput,
INDArray gradAtInput,
int iteration,
int epoch)
Perform backprop.
|
void |
clear()
Clear the internal state (for example, dropout mask) if any is present
|
GaussianDropout |
clone() |
public GaussianDropout(double rate)
rate - Rate parameter, see GaussianDropoutpublic GaussianDropout(ISchedule rateSchedule)
rateSchedule - Schedule for rate parameter, see GaussianDropoutprotected GaussianDropout(double rate,
ISchedule rateSchedule)
public INDArray applyDropout(INDArray inputActivations, INDArray output, int iteration, int epoch, LayerWorkspaceMgr workspaceMgr)
applyDropout in interface IDropoutinputActivations - Input activations arrayoutput - The result array (same as inputArray for in-place ops) for the post-dropout activationsiteration - Current iteration numberepoch - Current epoch numberworkspaceMgr - Workspace manager, if any storage is required (use ArrayType.INPUT)public INDArray backprop(INDArray gradAtOutput, INDArray gradAtInput, int iteration, int epoch)
IDropoutbackprop in interface IDropoutgradAtOutput - Gradients at the output of the dropout op - i.e., dL/dOutgradAtInput - Gradients at the input of the dropout op - i.e., dL/dIn. Use the same array as gradAtOutput
to apply the backprop gradient in-placeiteration - Current iterationepoch - Current epochpublic void clear()
IDropoutpublic GaussianDropout clone()
Copyright © 2021. All rights reserved.