|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joone.engine.Layer
org.joone.engine.SimpleLayer
org.joone.engine.TanhLayer
public class TanhLayer
Layer that applies the tangent hyperbolic transfer function to its input patterns
| Field Summary |
|---|
| Fields inherited from class org.joone.engine.Layer |
|---|
bias, gradientInps, gradientOuts, inps, inputPatternListeners, learnable, learning, m_batch, monitor, myLearner, outputPatternListeners, outs, running, step, STOP_FLAG |
| Constructor Summary | |
|---|---|
TanhLayer()
default constructor |
|
TanhLayer(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
backward(double[] pattern)
Reverse transfer function of the component. |
void |
forward(double[] pattern)
Transfer function to recall a result on a trained net |
double |
getDefaultState()
Return the default state of a node in this layer, such as 0 for a tanh or 0.5 for a sigmoid layer |
double |
getDerivative(int i)
Similar to the backward message and used by RTRL |
double |
getFlatSpotConstant()
Gets the flat spot constant. |
Learner |
getLearner()
Deprecated. - Used only for backward compatibility |
double |
getMaximumState()
Return maximum value of a node in this layer |
double |
getMinimumState()
Return minimum value of a node in this layer |
void |
setFlatSpotConstant(double aConstant)
Sets the constant to overcome the flat spot problem. |
| Methods inherited from class org.joone.engine.SimpleLayer |
|---|
getLearningRate, getLrate, getMomentum, setDimensions, setLrate, setMomentum, setMonitor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.joone.engine.Learnable |
|---|
getMonitor, initLearner |
| Methods inherited from interface org.joone.engine.NeuralLayer |
|---|
addInputSynapse, addNoise, addOutputSynapse, check, copyInto, getAllInputs, getAllOutputs, getBias, getLayerName, getMonitor, getRows, isRunning, removeAllInputs, removeAllOutputs, removeInputSynapse, removeOutputSynapse, setAllInputs, setAllOutputs, setBias, setLayerName, setMonitor, setRows, start |
| Constructor Detail |
|---|
public TanhLayer()
public TanhLayer(java.lang.String name)
| Method Detail |
|---|
public void backward(double[] pattern)
Layer
backward in class SimpleLayerpattern - input pattern on which to apply the transfer function(double[])public double getDerivative(int i)
getDerivative in class Layerpublic void forward(double[] pattern)
Layer
forward in class Layerpattern - input pattern to which to apply the rtransfer function(double[])public Learner getLearner()
Layer
getLearner in interface LearnablegetLearner in class LayerLearnable.getLearner()public void setFlatSpotConstant(double aConstant)
aConstant - public double getFlatSpotConstant()
public double getDefaultState()
Layer
getDefaultState in class Layerpublic double getMinimumState()
Layer
getMinimumState in class Layerpublic double getMaximumState()
Layer
getMaximumState in class Layer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||