public class CenterLossOutputLayer extends BaseOutputLayer
| Modifier and Type | Class and Description |
|---|---|
static class |
CenterLossOutputLayer.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected double |
alpha |
protected boolean |
gradientCheck |
protected double |
lambda |
hasBias, lossFnnIn, nOutactivationFn, biasInit, biasUpdater, dist, gradientNormalization, gradientNormalizationThreshold, iUpdater, l1, l1Bias, l2, l2Bias, weightInit, weightNoiseconstraints, iDropout, layerName| Modifier | Constructor and Description |
|---|---|
protected |
CenterLossOutputLayer(CenterLossOutputLayer.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAlpha() |
boolean |
getGradientCheck() |
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 |
getLambda() |
LayerMemoryReport |
getMemoryReport(InputType inputType)
This is a report of the estimated memory consumption for the given layer
|
IUpdater |
getUpdaterByParam(String paramName)
Get the updater for the given parameter.
|
ParamInitializer |
initializer() |
Layer |
instantiate(NeuralNetConfiguration conf,
Collection<TrainingListener> trainingListeners,
int layerIndex,
INDArray layerParamsView,
boolean initializeParams) |
hasBiasgetOutputType, getPreProcessorForInputType, isPretrain, isPretrainParam, setNInclone, getGradientNormalization, resetLayerDefaultConfiginitializeConstraints, setPretrainequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGradientNormalizationThreshold, getLayerNameprotected double alpha
protected double lambda
protected boolean gradientCheck
protected CenterLossOutputLayer(CenterLossOutputLayer.Builder builder)
public Layer instantiate(NeuralNetConfiguration conf, Collection<TrainingListener> trainingListeners, int layerIndex, INDArray layerParamsView, boolean initializeParams)
instantiate in class Layerpublic ParamInitializer initializer()
initializer in class Layerpublic IUpdater getUpdaterByParam(String paramName)
BaseLayergetUpdaterByParam in interface TrainingConfiggetUpdaterByParam in class BaseLayerparamName - Parameter namepublic double getL1ByParam(String paramName)
LayergetL1ByParam in interface TrainingConfiggetL1ByParam in class FeedForwardLayerparamName - Parameter namepublic double getL2ByParam(String paramName)
LayergetL2ByParam in interface TrainingConfiggetL2ByParam in class FeedForwardLayerparamName - Parameter namepublic double getAlpha()
public double getLambda()
public boolean getGradientCheck()
public LayerMemoryReport getMemoryReport(InputType inputType)
LayergetMemoryReport in class BaseOutputLayerinputType - Input type to the layer. Memory consumption is often a function of the input typeCopyright © 2018. All rights reserved.