public abstract class BasePretrainNetwork extends FeedForwardLayer
Modifier and Type | Class and Description |
---|---|
static class |
BasePretrainNetwork.Builder<T extends BasePretrainNetwork.Builder<T>> |
Modifier and Type | Field and Description |
---|---|
protected org.nd4j.linalg.lossfunctions.LossFunctions.LossFunction |
lossFunction |
protected double |
visibleBiasInit |
nIn, nOut
activationFn, adamMeanDecay, adamVarDecay, biasInit, biasLearningRate, dist, epsilon, gradientNormalization, gradientNormalizationThreshold, iUpdater, l1, l1Bias, l2, l2Bias, learningRate, learningRateSchedule, momentum, momentumSchedule, rho, rmsDecay, updater, weightInit
Constructor and Description |
---|
BasePretrainNetwork(BasePretrainNetwork.Builder builder) |
Modifier and Type | Method and Description |
---|---|
double |
getL1ByParam(String paramName)
Get the L1 coefficient for the given parameter.
|
double |
getL2ByParam(String paramName)
Get the L2 coefficient for the given parameter.
|
double |
getLearningRateByParam(String paramName)
Get the (initial) learning rate coefficient for the given parameter.
|
boolean |
isPretrainParam(String paramName)
Is the specified parameter a layerwise pretraining only parameter?
For example, visible bias params in an autoencoder (or, decoder params in a variational autoencoder) aren't used during supervised backprop. Layers (like DenseLayer, etc) with no pretrainable parameters will return false for all (valid) inputs. |
getOutputType, getPreProcessorForInputType, setNIn
clone, getIUpdaterByParam, getUpdaterByParam, resetLayerDefaultConfig
getMemoryReport, initializer, instantiate
protected org.nd4j.linalg.lossfunctions.LossFunctions.LossFunction lossFunction
protected double visibleBiasInit
public BasePretrainNetwork(BasePretrainNetwork.Builder builder)
public double getL1ByParam(String paramName)
Layer
getL1ByParam
in class FeedForwardLayer
paramName
- Parameter namepublic double getL2ByParam(String paramName)
Layer
getL2ByParam
in class FeedForwardLayer
paramName
- Parameter namepublic double getLearningRateByParam(String paramName)
Layer
getLearningRateByParam
in class FeedForwardLayer
paramName
- Parameter namepublic boolean isPretrainParam(String paramName)
Layer
isPretrainParam
in class FeedForwardLayer
paramName
- Parameter name/keyCopyright © 2017. All rights reserved.