public class ContextLayer extends SimpleLayer
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
initialState
The initial state
|
bias, gradientInps, gradientOuts, inps, inputPatternListeners, learnable, learning, m_batch, monitor, myLearner, outputPatternListeners, outs, running, step, STOP_FLAG| Constructor and Description |
|---|
ContextLayer() |
ContextLayer(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
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 |
getBeta()
Getter for property beta.
|
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
|
Matrix |
getInitialState()
Get the initial state, also use this to change, in place, the initial state
|
double |
getMaximumState()
Return maximum value of a node in this layer
|
double |
getMinimumState()
Return minimum value of a node in this layer
|
double |
getTimeConstant()
Getter for property timeConstant.
|
java.util.Collection |
Inspections()
It doesn't make sense to return biases for this layer
|
void |
resetInitialState()
Reset the initial state of this context layer.
|
void |
setBeta(double beta)
Setter for property beta.
|
protected void |
setDimensions()
Use this to also allocate space for the initial state vector
|
void |
setTimeConstant(double timeConstant)
Setter for property timeConstant.
|
getLearningRate, getLrate, getMomentum, setLrate, setMomentum, setMonitoraddInputSynapse, addNoise, addOutputSynapse, adjustSizeToFwdPattern, adjustSizeToRevPattern, check, checkInputEnabled, checkInputs, checkOutputs, copyInto, finalize, fireFwdGet, fireFwdPut, fireRevGet, fireRevPut, fwdRun, getAllInputs, getAllOutputs, getBias, getDimension, getLastGradientInps, getLastGradientOuts, getLastInputs, getLastOutputs, getLayerName, getLearner, getMonitor, getRows, getThreadMonitor, hasStepCounter, init, initLearner, InspectableTitle, isInputLayer, isOutputLayer, isRunning, join, randomize, randomizeBias, randomizeWeights, removeAllInputs, removeAllOutputs, removeInputSynapse, removeListener, removeOutputSynapse, resetInputListeners, revRun, run, setAllInputs, setAllOutputs, setBias, setConnDimensions, setInputDimension, setInputSynapses, setLastInputs, setLastOutputs, setLayerName, setOutputDimension, setOutputSynapses, setRows, start, stop, sumBackInput, sumInput, toStringprotected Matrix initialState
public ContextLayer()
public ContextLayer(java.lang.String name)
public void backward(double[] pattern)
Layerbackward in class SimpleLayerpattern - input pattern on which to apply the transfer functionpublic double getDerivative(int i)
getDerivative in class Layerpublic void forward(double[] pattern)
Layerpublic double getBeta()
public void setBeta(double beta)
beta - New value of property beta.public double getTimeConstant()
public void setTimeConstant(double timeConstant)
timeConstant - New value of property timeConstant.public java.util.Collection Inspections()
Inspections in interface InspectableInspections in class Layerorg.joone.Inspectionprotected void setDimensions()
setDimensions in class SimpleLayerpublic Matrix getInitialState()
public void resetInitialState()
public double getDefaultState()
LayergetDefaultState in class Layerpublic double getMinimumState()
LayergetMinimumState in class Layerpublic double getMaximumState()
LayergetMaximumState in class LayerSubmit Feedback to pmarrone@users.sourceforge.net