public class SubsamplingLayer extends org.deeplearning4j.nn.conf.layers.SubsamplingLayer implements OptionHandler, java.io.Serializable
| Constructor and Description |
|---|
SubsamplingLayer()
Constructor for setting some defaults.
|
| Modifier and Type | Method and Description |
|---|---|
org.nd4j.linalg.activations.IActivation |
getActivationFn() |
org.nd4j.linalg.activations.IActivation |
getActivationFunction() |
double |
getAdamMeanDecay() |
double |
getAdamVarDecay() |
double |
getBiasInit() |
double |
getBiasL1() |
double |
getBiasL2() |
double |
getBiasLearningRate() |
org.deeplearning4j.nn.conf.ConvolutionMode |
getConvolutionMode() |
org.deeplearning4j.nn.conf.distribution.Distribution |
getDist() |
double |
getDropOut() |
double |
getEps() |
double |
getEpsilon() |
org.deeplearning4j.nn.conf.GradientNormalization |
getGradientNormalization() |
double |
getGradientNormalizationThreshold() |
int[] |
getKernelSize() |
int |
getKernelSizeX() |
int |
getKernelSizeY() |
double |
getL1() |
double |
getL1Bias() |
double |
getL2() |
double |
getL2Bias() |
java.lang.String |
getLayerName() |
double |
getLearningRate() |
java.util.Map<java.lang.Integer,java.lang.Double> |
getLearningRateSchedule() |
double |
getMomentum() |
java.util.Map<java.lang.Integer,java.lang.Double> |
getMomentumSchedule() |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
int[] |
getPadding() |
int |
getPaddingX() |
int |
getPaddingY() |
int |
getPnorm() |
org.deeplearning4j.nn.conf.layers.PoolingType |
getPoolingType() |
double |
getRho() |
double |
getRmsDecay() |
int[] |
getStride() |
int |
getStrideX() |
int |
getStrideY() |
org.deeplearning4j.nn.conf.Updater |
getUpdater() |
org.deeplearning4j.nn.weights.WeightInit |
getWeightInit() |
java.lang.String |
globalInfo()
Global info.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setActivationFn(org.nd4j.linalg.activations.IActivation fn) |
void |
setActivationFunction(org.nd4j.linalg.activations.IActivation activationFn) |
void |
setAdamMeanDecay(double adamMeanDecay) |
void |
setAdamVarDecay(double adamVarDecay) |
void |
setBiasInit(double biasInit) |
void |
setBiasL1(double biasL1) |
void |
setBiasL2(double biasL2) |
void |
setBiasLearningRate(double biasLearningRate) |
void |
setConvolutionMode(org.deeplearning4j.nn.conf.ConvolutionMode convolutionMode) |
void |
setDist(org.deeplearning4j.nn.conf.distribution.Distribution dist) |
void |
setDropOut(double dropOut) |
void |
setEps(double e) |
void |
setEpsilon(double epsilon) |
void |
setGradientNormalization(org.deeplearning4j.nn.conf.GradientNormalization gradientNormalization) |
void |
setGradientNormalizationThreshold(double gradientNormalizationThreshold) |
void |
setKernelSize(int[] kernelSize) |
void |
setKernelSizeX(int kernelSize) |
void |
setKernelSizeY(int kernelSize) |
void |
setL1(double l1) |
void |
setL1Bias(int l1bias) |
void |
setL2(double l2) |
void |
setL2Bias(int l2bias) |
void |
setLayerName(java.lang.String layerName) |
void |
setLearningRate(double learningRate) |
void |
setLearningRateSchedule(java.util.Map<java.lang.Integer,java.lang.Double> learningRateSchedule) |
void |
setMomentum(double momentum) |
void |
setMomentumSchedule(java.util.Map<java.lang.Integer,java.lang.Double> momentumSchedule) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setPadding(int[] padding) |
void |
setPaddingX(int padding) |
void |
setPaddingY(int padding) |
void |
setPnorm(int p) |
void |
setPoolingType(org.deeplearning4j.nn.conf.layers.PoolingType poolingType) |
void |
setRho(double rho) |
void |
setRmsDecay(double rmsDecay) |
void |
setStride(int[] stride) |
void |
setStrideX(int stride) |
void |
setStrideY(int stride) |
void |
setUpdater(org.deeplearning4j.nn.conf.Updater updater) |
void |
setWeightInit(org.deeplearning4j.nn.weights.WeightInit weightInit) |
clone, equals, getL1ByParam, getL2ByParam, getLearningRateByParam, getOutputType, getPreProcessorForInputType, hashCode, initializer, instantiate, setNIn, toStringpublic SubsamplingLayer()
public java.lang.String globalInfo()
@OptionMetadata(displayName="layer name", description="The name of the layer (default = Convolutional Layer).", commandLineParamName="name", commandLineParamSynopsis="-name <string>", displayOrder=0) public java.lang.String getLayerName()
getLayerName in class org.deeplearning4j.nn.conf.layers.Layerpublic void setLayerName(java.lang.String layerName)
setLayerName in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="convolution mode", description="The convolution mode (default = Truncate).", commandLineParamName="mode", commandLineParamSynopsis="-mode <string>", displayOrder=1) public org.deeplearning4j.nn.conf.ConvolutionMode getConvolutionMode()
getConvolutionMode in class org.deeplearning4j.nn.conf.layers.SubsamplingLayerpublic void setConvolutionMode(org.deeplearning4j.nn.conf.ConvolutionMode convolutionMode)
setConvolutionMode in class org.deeplearning4j.nn.conf.layers.SubsamplingLayer@OptionMetadata(displayName="eps", description="The value of the eps parameter (default = 1e-8).", commandLineParamName="eps", commandLineParamSynopsis="-eps <double>", displayOrder=2) public double getEps()
getEps in class org.deeplearning4j.nn.conf.layers.SubsamplingLayerpublic void setEps(double e)
setEps in class org.deeplearning4j.nn.conf.layers.SubsamplingLayer@OptionMetadata(displayName="pnorm", description="The value of the pnorm parameter (default = 1).", commandLineParamName="pnorm", commandLineParamSynopsis="-pnorm <int>", displayOrder=3) public int getPnorm()
getPnorm in class org.deeplearning4j.nn.conf.layers.SubsamplingLayerpublic void setPnorm(int p)
setPnorm in class org.deeplearning4j.nn.conf.layers.SubsamplingLayer@OptionMetadata(displayName="number of columns in kernel", description="The number of columns in the kernel (default = 5).", commandLineParamName="kernelSizeX", commandLineParamSynopsis="-kernelSizeX <int>", displayOrder=4) public int getKernelSizeX()
public void setKernelSizeX(int kernelSize)
@OptionMetadata(displayName="number of rows in kernel", description="The number of rows in the kernel (default = 5).", commandLineParamName="kernelSizeY", commandLineParamSynopsis="-kernelSizeY <int>", displayOrder=5) public int getKernelSizeY()
public void setKernelSizeY(int kernelSize)
@ProgrammaticProperty public int[] getKernelSize()
getKernelSize in class org.deeplearning4j.nn.conf.layers.SubsamplingLayerpublic void setKernelSize(int[] kernelSize)
setKernelSize in class org.deeplearning4j.nn.conf.layers.SubsamplingLayer@OptionMetadata(displayName="number of columns in stride", description="The number of columns in the stride (default = 1).", commandLineParamName="strideX", commandLineParamSynopsis="-strideX <int>", displayOrder=6) public int getStrideX()
public void setStrideX(int stride)
@OptionMetadata(displayName="number of rows in stride", description="The number of rows in the stride (default = 1).", commandLineParamName="strideY", commandLineParamSynopsis="-strideY <int>", displayOrder=7) public int getStrideY()
public void setStrideY(int stride)
@ProgrammaticProperty public int[] getStride()
getStride in class org.deeplearning4j.nn.conf.layers.SubsamplingLayerpublic void setStride(int[] stride)
setStride in class org.deeplearning4j.nn.conf.layers.SubsamplingLayer@OptionMetadata(displayName="number of columns in padding", description="The number of columns in the padding (default = 0).", commandLineParamName="paddingX", commandLineParamSynopsis="-paddingX <int>", displayOrder=8) public int getPaddingX()
public void setPaddingX(int padding)
@OptionMetadata(displayName="number of rows in padding", description="The number of rows in the padding (default = 0).", commandLineParamName="paddingY", commandLineParamSynopsis="-paddingY <int>", displayOrder=9) public int getPaddingY()
public void setPaddingY(int padding)
@ProgrammaticProperty public int[] getPadding()
getPadding in class org.deeplearning4j.nn.conf.layers.SubsamplingLayerpublic void setPadding(int[] padding)
setPadding in class org.deeplearning4j.nn.conf.layers.SubsamplingLayer@OptionMetadata(displayName="pooling type", description="The type of pooling to use (default = MAX; options: MAX, AVG, SUM, NONE).", commandLineParamName="poolingType", commandLineParamSynopsis="-poolingType <string>", displayOrder=10) public org.deeplearning4j.nn.conf.layers.PoolingType getPoolingType()
getPoolingType in class org.deeplearning4j.nn.conf.layers.SubsamplingLayerpublic void setPoolingType(org.deeplearning4j.nn.conf.layers.PoolingType poolingType)
setPoolingType in class org.deeplearning4j.nn.conf.layers.SubsamplingLayer@OptionMetadata(displayName="activation function", description="The activation function to use (default = Identity).", commandLineParamName="activation", commandLineParamSynopsis="-activation <specification>", displayOrder=11) public org.nd4j.linalg.activations.IActivation getActivationFunction()
public void setActivationFunction(org.nd4j.linalg.activations.IActivation activationFn)
@ProgrammaticProperty public org.nd4j.linalg.activations.IActivation getActivationFn()
getActivationFn in class org.deeplearning4j.nn.conf.layers.Layerpublic void setActivationFn(org.nd4j.linalg.activations.IActivation fn)
setActivationFn in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="weight initialization method", description="The method for weight initialization (default = XAVIER).", commandLineParamName="weightInit", commandLineParamSynopsis="-weightInit <specification>", displayOrder=12) public org.deeplearning4j.nn.weights.WeightInit getWeightInit()
getWeightInit in class org.deeplearning4j.nn.conf.layers.Layerpublic void setWeightInit(org.deeplearning4j.nn.weights.WeightInit weightInit)
setWeightInit in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="bias initialization", description="The bias initialization (default = 1.0).", commandLineParamName="biasInit", commandLineParamSynopsis="-biasInit <double>", displayOrder=13) public double getBiasInit()
getBiasInit in class org.deeplearning4j.nn.conf.layers.Layerpublic void setBiasInit(double biasInit)
setBiasInit in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="distribution", description="The distribution (default = NormalDistribution(1e-3, 1)).", commandLineParamName="dist", commandLineParamSynopsis="-dist <specification>", displayOrder=14) public org.deeplearning4j.nn.conf.distribution.Distribution getDist()
getDist in class org.deeplearning4j.nn.conf.layers.Layerpublic void setDist(org.deeplearning4j.nn.conf.distribution.Distribution dist)
setDist in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="learning rate", description="The learning rate (default = 0.01).", commandLineParamName="lr", commandLineParamSynopsis="-lr <double>", displayOrder=15) public double getLearningRate()
getLearningRate in class org.deeplearning4j.nn.conf.layers.Layerpublic void setLearningRate(double learningRate)
setLearningRate in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="bias learning rate", description="The bias learning rate (default = 0.01).", commandLineParamName="blr", commandLineParamSynopsis="-blr <double>", displayOrder=16) public double getBiasLearningRate()
getBiasLearningRate in class org.deeplearning4j.nn.conf.layers.Layerpublic void setBiasLearningRate(double biasLearningRate)
setBiasLearningRate in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="learning rate schedule", description="The learning rate schedule.", commandLineParamName="lrSchedule", commandLineParamSynopsis="-lrSchedule <specification>", displayOrder=17) public java.util.Map<java.lang.Integer,java.lang.Double> getLearningRateSchedule()
getLearningRateSchedule in class org.deeplearning4j.nn.conf.layers.Layerpublic void setLearningRateSchedule(java.util.Map<java.lang.Integer,java.lang.Double> learningRateSchedule)
setLearningRateSchedule in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="momentum", description="The momentum (default = 0.9).", commandLineParamName="momentum", commandLineParamSynopsis="-momentum <double>", displayOrder=18) public double getMomentum()
getMomentum in class org.deeplearning4j.nn.conf.layers.Layerpublic void setMomentum(double momentum)
setMomentum in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="momentum schedule", description="The momentum schedule.", commandLineParamName="momentumSchedule", commandLineParamSynopsis="-momentumSchedule <specification>", displayOrder=19) public java.util.Map<java.lang.Integer,java.lang.Double> getMomentumSchedule()
getMomentumSchedule in class org.deeplearning4j.nn.conf.layers.Layerpublic void setMomentumSchedule(java.util.Map<java.lang.Integer,java.lang.Double> momentumSchedule)
setMomentumSchedule in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="L1", description="The L1 parameter (default = 0).", commandLineParamName="L1", commandLineParamSynopsis="-L1 <double>", displayOrder=20) public double getL1()
getL1 in class org.deeplearning4j.nn.conf.layers.Layerpublic void setL1(double l1)
setL1 in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="L2", description="The L2 parameter (default = 0).", commandLineParamName="L2", commandLineParamSynopsis="-L2 <double>", displayOrder=21) public double getL2()
getL2 in class org.deeplearning4j.nn.conf.layers.Layerpublic void setL2(double l2)
setL2 in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="L1 bias", description="The L1 bias parameter (default = 0).", commandLineParamName="l1Bias", commandLineParamSynopsis="-l1Bias <double>", displayOrder=22) public double getBiasL1()
public void setBiasL1(double biasL1)
@OptionMetadata(displayName="L2 bias", description="The L2 bias parameter (default = 0).", commandLineParamName="l2Bias", commandLineParamSynopsis="-l2Bias <double>", displayOrder=23) public double getBiasL2()
public void setBiasL2(double biasL2)
@OptionMetadata(displayName="dropout parameter", description="The dropout parameter (default = 0).", commandLineParamName="dropout", commandLineParamSynopsis="-dropout <double>", displayOrder=24) public double getDropOut()
getDropOut in class org.deeplearning4j.nn.conf.layers.Layerpublic void setDropOut(double dropOut)
setDropOut in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="updater for stochastic gradient descent", description="The updater for stochastic gradient descent (default NESTEROVS).", commandLineParamName="updater", commandLineParamSynopsis="-updater <speficiation>", displayOrder=25) public org.deeplearning4j.nn.conf.Updater getUpdater()
getUpdater in class org.deeplearning4j.nn.conf.layers.Layerpublic void setUpdater(org.deeplearning4j.nn.conf.Updater updater)
setUpdater in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="ADADELTA\'s rho parameter", description="ADADELTA\'s rho parameter (default = 0).", commandLineParamName="rho", commandLineParamSynopsis="-rho <double>", displayOrder=26) public double getRho()
getRho in class org.deeplearning4j.nn.conf.layers.Layerpublic void setRho(double rho)
setRho in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="ADADELTA\'s epsilon parameter", description="ADADELTA\'s epsilon parameter (default = 1e-6).", commandLineParamName="epsilon", commandLineParamSynopsis="-epsilon <double>", displayOrder=27) public double getEpsilon()
getEpsilon in class org.deeplearning4j.nn.conf.layers.Layerpublic void setEpsilon(double epsilon)
setEpsilon in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="RMSPROP\'s RMS decay parameter", description="RMSPROP\'s RMS decay parameter (default = 0.95).", commandLineParamName="rmsDecay", commandLineParamSynopsis="-rmsDecay <double>", displayOrder=28) public double getRmsDecay()
getRmsDecay in class org.deeplearning4j.nn.conf.layers.Layerpublic void setRmsDecay(double rmsDecay)
setRmsDecay in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="ADAM\'s mean decay parameter", description="ADAM\'s mean decay parameter (default 0.9).", commandLineParamName="adamMeanDecay", commandLineParamSynopsis="-adamMeanDecay <double>", displayOrder=29) public double getAdamMeanDecay()
getAdamMeanDecay in class org.deeplearning4j.nn.conf.layers.Layerpublic void setAdamMeanDecay(double adamMeanDecay)
setAdamMeanDecay in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="ADAMS\'s var decay parameter", description="ADAM\'s var decay parameter (default 0.999).", commandLineParamName="adamVarDecay", commandLineParamSynopsis="-adamVarDecay <double>", displayOrder=30) public double getAdamVarDecay()
getAdamVarDecay in class org.deeplearning4j.nn.conf.layers.Layerpublic void setAdamVarDecay(double adamVarDecay)
setAdamVarDecay in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="gradient normalization method", description="The gradient normalization method (default = None).", commandLineParamName="gradientNormalization", commandLineParamSynopsis="-gradientNormalization <specification>", displayOrder=31) public org.deeplearning4j.nn.conf.GradientNormalization getGradientNormalization()
getGradientNormalization in class org.deeplearning4j.nn.conf.layers.Layerpublic void setGradientNormalization(org.deeplearning4j.nn.conf.GradientNormalization gradientNormalization)
setGradientNormalization in class org.deeplearning4j.nn.conf.layers.Layer@OptionMetadata(displayName="gradient normalization threshold", description="The gradient normalization threshold (default = 1).", commandLineParamName="gradNormThreshold", commandLineParamSynopsis="-gradNormThreshold <double>", displayOrder=32) public double getGradientNormalizationThreshold()
getGradientNormalizationThreshold in class org.deeplearning4j.nn.conf.layers.Layerpublic void setGradientNormalizationThreshold(double gradientNormalizationThreshold)
setGradientNormalizationThreshold in class org.deeplearning4j.nn.conf.layers.Layer@ProgrammaticProperty public double getL1Bias()
getL1Bias in class org.deeplearning4j.nn.conf.layers.Layerpublic void setL1Bias(int l1bias)
@ProgrammaticProperty public double getL2Bias()
getL2Bias in class org.deeplearning4j.nn.conf.layers.Layerpublic void setL2Bias(int l2bias)
public java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supported