public abstract static class BaseOutputLayer.Builder<T extends BaseOutputLayer.Builder<T>> extends FeedForwardLayer.Builder<T>
Modifier and Type | Field and Description |
---|---|
protected ILossFunction |
lossFn
Loss function for the output layer
|
nIn, nOut
activationFn, biasInit, biasUpdater, gainInit, gradientNormalization, gradientNormalizationThreshold, iupdater, regularization, regularizationBias, weightInitFn, weightNoise
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints
Constructor and Description |
---|
Builder() |
Builder(ILossFunction lossFunction) |
Builder(LossFunctions.LossFunction lossFunction) |
Modifier and Type | Method and Description |
---|---|
T |
hasBias(boolean hasBias)
If true (default): include bias parameters in the model.
|
T |
lossFunction(ILossFunction lossFunction) |
T |
lossFunction(LossFunctions.LossFunction lossFunction) |
nIn, nIn, nOut, nOut, units
activation, activation, biasInit, biasUpdater, dist, gainInit, gradientNormalization, gradientNormalizationThreshold, l1, l1Bias, l2, l2Bias, regularization, regularizationBias, updater, updater, weightDecay, weightDecay, weightDecayBias, weightDecayBias, weightInit, weightInit, weightInit, weightNoise
build, constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
protected ILossFunction lossFn
public Builder()
public Builder(LossFunctions.LossFunction lossFunction)
lossFunction
- Loss function for the output layerpublic Builder(ILossFunction lossFunction)
lossFunction
- Loss function for the output layerpublic T lossFunction(LossFunctions.LossFunction lossFunction)
lossFunction
- Loss function for the output layerpublic T hasBias(boolean hasBias)
hasBias
- If true: include bias parameters in this modelpublic T lossFunction(ILossFunction lossFunction)
lossFunction
- Loss function for the output layerCopyright © 2020. All rights reserved.