|
||||||||||
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. |
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. |
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 double getDerivative(int i)
getDerivative
in class Layer
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
public double getDefaultState()
Layer
getDefaultState
in class Layer
public double getMinimumState()
Layer
getMinimumState
in class Layer
public double getMaximumState()
Layer
getMaximumState
in class Layer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |