public static class LossLayer.Builder extends BaseOutputLayer.Builder<LossLayer.Builder>
lossFn
nIn, nOut
activationFn, biasInit, biasUpdater, dist, gradientNormalization, gradientNormalizationThreshold, iupdater, l1, l1Bias, l2, l2Bias, weightInit, weightNoise
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints
Constructor and Description |
---|
Builder() |
Builder(org.nd4j.linalg.lossfunctions.ILossFunction lossFunction) |
Builder(org.nd4j.linalg.lossfunctions.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
units
activation, activation, biasInit, biasUpdater, dist, gradientNormalization, gradientNormalizationThreshold, l1, l1Bias, l2, l2Bias, updater, updater, weightInit, weightInit, weightNoise
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
public Builder()
public Builder(org.nd4j.linalg.lossfunctions.LossFunctions.LossFunction lossFunction)
public Builder(org.nd4j.linalg.lossfunctions.ILossFunction lossFunction)
public 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 © 2018. All rights reserved.