AI::NeuralNet::SOM::Torus - Perl extension for Kohonen Maps (torus topology)
use AI::NeuralNet::SOM::Torus; my $nn = new AI::NeuralNet::SOM::Torus (output_dim => "5x6", input_dim => 3); $nn->initialize; $nn->train (30, [ 3, 2, 4 ], [ -1, -1, -1 ], [ 0, 4, -3]); print $nn->as_data;
This SOM is very similar to that with a rectangular topology, except that the rectangle is connected on the top edge and the bottom edge to first form a cylinder; and that cylinder is then formed into a torus by connecting the rectangle's left and right border (http://en.wikipedia.org/wiki/Torus).
It exposes the same interface as the base class.
Robert Barta, <email@example.com>
Copyright (C) 2007 by Robert Barta
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.