|
||||||||||
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.WTALayer
public class WTALayer
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 FormField 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 | |
---|---|
WTALayer()
The default constructor for this WTALayer. |
|
WTALayer(java.lang.String ElemName)
The constructor allowing a name to be specified. |
Method Summary | |
---|---|
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. |
int |
getLayerDepth()
Getter for property LayerDepth. |
int |
getLayerHeight()
Getter for property LayerHeight. |
int |
getLayerWidth()
Getter for property LayerWidth. |
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. |
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 |
Constructor Detail |
---|
public WTALayer()
public WTALayer(java.lang.String ElemName)
ElemName
- The name of the LayerMethod Detail |
---|
public void backward(double[] pattern) throws JooneRuntimeException
No biases need updating or setting. Not implemented / not required.
backward
in class SimpleLayer
pattern
- The pattern with which to update internal variables. Not required.
JooneRuntimeException
- The Joone Run time exception.public void forward(double[] pattern) throws JooneRuntimeException
forward
in class Layer
pattern
- 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 NeuralLayer
check
in class Layer
NeuralLayer
public java.util.Collection Inspections()
Inspections
in interface Inspectable
Inspections
in class Layer
org.joone.Inspection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |