public static class LossLayer.Builder extends BaseOutputLayer.Builder<LossLayer.Builder>
lossFnnIn, nOutactivationFn, biasInit, biasUpdater, gainInit, gradientNormalization, gradientNormalizationThreshold, iupdater, regularization, regularizationBias, weightInitFn, weightNoiseallParamConstraints, biasConstraints, iDropout, layerName, weightConstraints| Constructor and Description |
|---|
Builder() |
Builder(ILossFunction lossFunction) |
Builder(LossFunctions.LossFunction lossFunction) |
| Modifier and Type | Method and Description |
|---|---|
LossLayer |
build() |
LossLayer.Builder |
nIn(int nIn)
Number of inputs for the layer (usually the size of the last layer).
|
LossLayer.Builder |
nOut(int nOut)
Number of outputs - used to set the layer size (number of units/nodes for the current layer).
|
hasBias, lossFunction, lossFunctionnIn, nOut, unitsactivation, activation, biasInit, biasUpdater, dist, gainInit, gradientNormalization, gradientNormalizationThreshold, l1, l1Bias, l2, l2Bias, regularization, regularizationBias, updater, updater, weightDecay, weightDecay, weightDecayBias, weightDecayBias, weightInit, weightInit, weightInit, weightNoiseconstrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, namepublic Builder()
public Builder(LossFunctions.LossFunction lossFunction)
lossFunction - Loss function for the loss layerpublic Builder(ILossFunction lossFunction)
lossFunction - Loss function for the loss layerpublic LossLayer.Builder nIn(int nIn)
FeedForwardLayer.BuildernIn in class FeedForwardLayer.Builder<LossLayer.Builder>nIn - Number of inputs for the layerpublic LossLayer.Builder nOut(int nOut)
FeedForwardLayer.BuilderFeedForwardLayer.Builder.units(int)nOut in class FeedForwardLayer.Builder<LossLayer.Builder>nOut - Number of outputs / layer sizepublic LossLayer build()
build in class Layer.Builder<LossLayer.Builder>Copyright © 2020. All rights reserved.