public abstract class BaseLayer extends Layer implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
BaseLayer.Builder<T extends BaseLayer.Builder<T>> |
Modifier and Type | Field and Description |
---|---|
protected IActivation |
activationFn |
protected double |
biasInit |
protected IUpdater |
biasUpdater |
protected double |
gainInit |
protected GradientNormalization |
gradientNormalization |
protected double |
gradientNormalizationThreshold |
protected IUpdater |
iUpdater |
protected List<Regularization> |
regularization |
protected List<Regularization> |
regularizationBias |
protected IWeightInit |
weightInitFn |
protected IWeightNoise |
weightNoise |
constraints, iDropout, layerName
Constructor and Description |
---|
BaseLayer(BaseLayer.Builder builder) |
Modifier and Type | Method and Description |
---|---|
BaseLayer |
clone() |
GradientNormalization |
getGradientNormalization() |
List<Regularization> |
getRegularizationByParam(String paramName)
Get the regularization types (l1/l2/weight decay) for the given parameter.
|
IUpdater |
getUpdaterByParam(String paramName)
Get the updater for the given parameter.
|
void |
resetLayerDefaultConfig()
Reset the learning related configs of the layer to default.
|
getMemoryReport, getOutputType, getPreProcessorForInputType, initializeConstraints, initializer, instantiate, isPretrainParam, setDataType, setNIn
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGradientNormalizationThreshold, getLayerName
protected IActivation activationFn
protected IWeightInit weightInitFn
protected double biasInit
protected double gainInit
protected List<Regularization> regularization
protected List<Regularization> regularizationBias
protected IUpdater iUpdater
protected IUpdater biasUpdater
protected IWeightNoise weightNoise
protected GradientNormalization gradientNormalization
protected double gradientNormalizationThreshold
public BaseLayer(BaseLayer.Builder builder)
public void resetLayerDefaultConfig()
resetLayerDefaultConfig
in class Layer
public IUpdater getUpdaterByParam(String paramName)
getUpdaterByParam
in interface TrainingConfig
getUpdaterByParam
in class Layer
paramName
- Parameter namepublic GradientNormalization getGradientNormalization()
getGradientNormalization
in interface TrainingConfig
public List<Regularization> getRegularizationByParam(String paramName)
Layer
getRegularizationByParam
in interface TrainingConfig
getRegularizationByParam
in class Layer
paramName
- Parameter name ("W", "b" etc)Copyright © 2019. All rights reserved.