public abstract static class BaseRecurrentLayer.Builder<T extends BaseRecurrentLayer.Builder<T>> extends FeedForwardLayer.Builder<T>
Modifier and Type | Field and Description |
---|---|
protected Distribution |
distRecurrent |
protected List<LayerConstraint> |
inputWeightConstraints |
protected List<LayerConstraint> |
recurrentConstraints |
protected WeightInit |
weightInitRecurrent |
nIn, nOut
activationFn, biasInit, biasUpdater, dist, gradientNormalization, gradientNormalizationThreshold, iupdater, l1, l1Bias, l2, l2Bias, weightInit, weightNoise
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
T |
constrainInputWeights(LayerConstraint... constraints)
Set constraints to be applied to the RNN input weight parameters of this layer.
|
T |
constrainRecurrent(LayerConstraint... constraints)
Set constraints to be applied to the RNN recurrent weight parameters of this layer.
|
T |
weightInitRecurrent(Distribution dist)
Set the weight initialization for the recurrent weights, based on the specified distribution.
|
T |
weightInitRecurrent(WeightInit weightInit)
Set the weight initialization for the recurrent weights.
|
nIn, nOut, units
activation, activation, biasInit, biasUpdater, dist, gradientNormalization, gradientNormalizationThreshold, l1, l1Bias, l2, l2Bias, updater, updater, weightInit, weightInit, weightNoise
build, constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
protected List<LayerConstraint> recurrentConstraints
protected List<LayerConstraint> inputWeightConstraints
protected WeightInit weightInitRecurrent
protected Distribution distRecurrent
public T constrainRecurrent(LayerConstraint... constraints)
constraints
- Constraints to apply to the recurrent weight parameters of this layerpublic T constrainInputWeights(LayerConstraint... constraints)
constraints
- Constraints to apply to the input weight parameters of this layerpublic T weightInitRecurrent(WeightInit weightInit)
weightInit
- Weight initialization for the recurrent weights only.public T weightInitRecurrent(Distribution dist)
dist
- Distribution to use for initializing the recurrent weightsCopyright © 2018. All rights reserved.