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, setNInequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGradientNormalizationThreshold, getLayerNameprotected 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 Layerpublic IUpdater getUpdaterByParam(String paramName)
getUpdaterByParam in interface TrainingConfiggetUpdaterByParam in class LayerparamName - Parameter namepublic GradientNormalization getGradientNormalization()
getGradientNormalization in interface TrainingConfigpublic List<Regularization> getRegularizationByParam(String paramName)
LayergetRegularizationByParam in interface TrainingConfiggetRegularizationByParam in class LayerparamName - Parameter name ("W", "b" etc)Copyright © 2020. All rights reserved.