public class WTALayer extends SimpleLayer
This layer implements the Winner Takes All SOM strategy. The layer expects to receive euclidean distances between the previous synapse weights and it's input. The layer simply works out which node is the winner and passes 1.0 for that node and 0.0 for the others.
parent,
Serialized Formbias, gradientInps, gradientOuts, inps, inputPatternListeners, learnable, learning, m_batch, monitor, myLearner, outputPatternListeners, outs, running, step, STOP_FLAG| Constructor and Description |
|---|
WTALayer()
The default constructor for this WTALayer.
|
WTALayer(java.lang.String ElemName)
The constructor allowing a name to be specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
backward(double[] pattern)
No biases need updating or setting.
|
java.util.TreeSet |
check()
Check that there are no errors or problems with the properties of this
WTALayer.
|
void |
forward(double[] pattern)
This method accepts an array of values from the input and forwards it
according to the Winner Takes All strategy.
|
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
|
int |
getLayerDepth()
Getter for property LayerDepth.
|
int |
getLayerHeight()
Getter for property LayerHeight.
|
int |
getLayerWidth()
Getter for property LayerWidth.
|
double |
getMaximumState()
Return maximum value of a node in this layer
|
double |
getMinimumState()
Return minimum value of a node in this layer
|
java.util.Collection |
Inspections()
It doesn't make sense to return biases for this layer
|
void |
setLayerDepth(int layerDepth)
Setter for property layerDepth.
|
void |
setLayerHeight(int LayerHeight)
Setter for property LayerHeight.
|
void |
setLayerWidth(int LayerWidth)
Setter for property LayerWidth.
|
getLearningRate, getLrate, getMomentum, setDimensions, setLrate, setMomentum, setMonitoraddInputSynapse, addNoise, addOutputSynapse, adjustSizeToFwdPattern, adjustSizeToRevPattern, 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, toStringpublic WTALayer()
public WTALayer(java.lang.String ElemName)
ElemName - The name of the Layerpublic void backward(double[] pattern)
throws JooneRuntimeException
No biases need updating or setting. Not implemented / not required.
backward in class SimpleLayerpattern - The pattern with which to update internal variables. Not required.JooneRuntimeException - The Joone Run time exception.public double getDerivative(int i)
getDerivative in class Layerpublic void forward(double[] pattern)
throws JooneRuntimeException
forward in class Layerpattern - Should be the euclidean distance between the previous synapse's input vector and weights.
JooneRuntimeException - This Exception is a wrapper Exception when an
Exception is thrown while doing the maths.(double[])public int getLayerDepth()
public void setLayerDepth(int layerDepth)
LayerDepth - New value of property layerDepth.public int getLayerHeight()
public void setLayerHeight(int LayerHeight)
LayerHeight - New value of property LayerHeight.public int getLayerWidth()
public void setLayerWidth(int LayerWidth)
LayerWidth - New value of property LayerWidth.public java.util.TreeSet check()
check in interface NeuralLayercheck in class LayerNeuralLayerpublic java.util.Collection Inspections()
Inspections in interface InspectableInspections in class Layerorg.joone.Inspectionpublic double getDefaultState()
LayergetDefaultState in class Layerpublic double getMinimumState()
LayergetMinimumState in class Layerpublic double getMaximumState()
LayergetMaximumState in class LayerSubmit Feedback to pmarrone@users.sourceforge.net