AI::NeuralNet::Kohonen::Node - a node for AI::NeuralNet::Kohonen
Implimentation of a node in a SOM - see AI::NeuralNet::Kohonen.
Returns a new Node object. If no wieghts are supplied, the node's weights are randomized with real nubmers.
The number of dimensions of this node's weights. Do not supply if you are supplying weight.
Optional: a reference to an array containing the weight for this node. Supplying this allows the constructor to work out dim, above.
The values of the vector. Use x for unknown values.
Used to donate missing input in the node. Default is x.
Find the distance of this node from the target.
Accepts: the target vector as an array reference.
Returns: the distance.
/ i=n 2
Distance = / E ( V - W )
\/ i=0 i i
Where V is the current input vector, and W is this node's weight vector.
Calculates the effect on learning of distance from a given point (intended to be the BMU).
Accepts: the distance of this node from the given point; the radius of the neighbourhood of affect around the given point.
( 2 )
( distance )
THETA(t) = exp ( - ----------- )
( 2 )
( 2 sigma (t) )
Where distance is the distance of the node from the BMU, and sigma is the width of the neighbourhood as calculated elsewhere (see "FINDING THE NEIGHBOURS OF THE BMU" in AI::NeuralNet::Kohonen). THETA also decays over time.
The time t is always that of the calling object, and is not referenced here.
This implimentation Copyright (C) Lee Goddard, 2003. All Rights Reserved.
Available under the same terms as Perl itself.
To install AI::NeuralNet::Kohonen, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.