public static class LossLayer.Builder extends BaseOutputLayer.Builder<LossLayer.Builder>
lossFn
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 |
---|---|
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, lossFunction
nIn, 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
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
public 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.Builder
nIn
in class FeedForwardLayer.Builder<LossLayer.Builder>
nIn
- Number of inputs for the layerpublic LossLayer.Builder nOut(int nOut)
FeedForwardLayer.Builder
FeedForwardLayer.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 © 2022. All rights reserved.