public class NetworkLayer extends Layer
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ContextNode> |
contextNodes
List of all context nodes
|
protected boolean |
fixed
True if context node are in fixed state - useful when simulating
|
protected java.util.List<InputNode> |
inputNodes
List of input nodes
|
protected DirectSynapse |
inputSynapse
Synapse used to interrogate network
|
protected java.util.List<Node> |
nodeList
List of all nodes
|
protected java.util.List<java.util.List<Node>> |
orderedNodes
Ordered nodes
|
protected java.util.List<Node> |
outputNodes
List of output nodes
|
protected int |
patternCount
Pattern counter
|
bias, gradientInps, gradientOuts, inps, inputPatternListeners, learnable, learning, m_batch, monitor, myLearner, outputPatternListeners, outs, running, step, STOP_FLAG
Constructor and Description |
---|
NetworkLayer(NeuralNet network)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
backward(double[] pattern)
Reverse transfer function of the component.
|
protected void |
forward(double[] pattern)
Transfer function to recall a result on a trained net
|
java.util.List<ContextNode> |
getContextNodes()
Return a list of all context nodes
|
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)
Return the derivative with respect to the function value at a given index.
|
java.util.List<InputNode> |
getInputNodes()
Return a list of all input nodes
|
double |
getMaximumState()
Return maximum value of a node in this layer
|
double |
getMinimumState()
Return minimum value of a node in this layer
|
java.util.List<Node> |
getNodeList()
Return a list of all nodes
|
java.util.List<java.util.List<Node>> |
getOrderedNodes()
Return the ordered nodes
|
java.util.List<Node> |
getOutputNodes()
Return a list of output nodes
|
double[] |
interrogate(double[] pattern)
Interrogate the net
|
boolean |
isFixed()
See if the network is currently in fixed state
|
static void |
main(java.lang.String[] args)
Test
|
protected void |
setDimensions()
Sets the dimension of the layer.
|
void |
setFixed(boolean fixed)
Set state of context nodes.
|
addInputSynapse, 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, Inspections, isInputLayer, isOutputLayer, isRunning, join, randomize, randomizeBias, randomizeWeights, removeAllInputs, removeAllOutputs, removeInputSynapse, removeListener, removeOutputSynapse, resetInputListeners, revRun, run, setAllInputs, setAllOutputs, setBias, setConnDimensions, setInputDimension, setInputSynapses, setLastInputs, setLastOutputs, setLayerName, setMonitor, setOutputDimension, setOutputSynapses, setRows, start, stop, sumBackInput, sumInput, toString
protected java.util.List<Node> nodeList
protected java.util.List<InputNode> inputNodes
protected java.util.List<Node> outputNodes
protected java.util.List<ContextNode> contextNodes
protected java.util.List<java.util.List<Node>> orderedNodes
protected boolean fixed
protected int patternCount
protected DirectSynapse inputSynapse
public NetworkLayer(NeuralNet network)
public double getDefaultState()
Layer
getDefaultState
in class Layer
public double getMinimumState()
Layer
getMinimumState
in class Layer
public double getMaximumState()
Layer
getMaximumState
in class Layer
protected void backward(double[] pattern) throws JooneRuntimeException
Layer
backward
in class Layer
pattern
- input pattern on which to apply the transfer functionJooneRuntimeException
protected void forward(double[] pattern) throws JooneRuntimeException
Layer
forward
in class Layer
pattern
- input pattern to which to apply the rtransfer functionJooneRuntimeException
protected void setDimensions()
Layer
setDimensions
in class Layer
public double getDerivative(int i)
Layer
getDerivative
in class Layer
public void setFixed(boolean fixed)
public boolean isFixed()
public double[] interrogate(double[] pattern)
public static void main(java.lang.String[] args)
public java.util.List<Node> getNodeList()
public java.util.List<InputNode> getInputNodes()
public java.util.List<Node> getOutputNodes()
public java.util.List<ContextNode> getContextNodes()
public java.util.List<java.util.List<Node>> getOrderedNodes()
Submit Feedback to pmarrone@users.sourceforge.net