AI::NeuralNet::Kohonen::Demo::RGB - Colour-based demo
use AI::NeuralNet::Kohonen::Demo::RGB; $_ = AI::NeuralNet::Kohonen::Demo::RGB->new( display_scale => 20, display => 'hex', map_dim => 39, epochs => 9, table => "R G B" ."1 0 0" ."0 1 0" ."0 0 1", ); $_->train; exit;
A sub-class of AI::NeuralNet::Kohonen that impliments extra methods to make use of TK in a very slow demonstration of how a SOM can collapse a three dimensional space (RGB colour values) into a two dimensional space (the display). See SYNOPSIS.
AI::NeuralNet::Kohonen
The only things added are two new fields to supply to the constructor - set display to hex for display as a unified distance matrix, rather than plain grid; set display_scale for the size of the display.
display
hex
display_scale
Over-rides the base class to provide TK displays of the map
See AI::NeuralNet::Kohonen; AI::NeuralNet::Kohonen::Node;
This implimentation Copyright (C) Lee Goddard, 2003. All Rights Reserved.
Available under the same terms as Perl itself.
To install AI::NeuralNet::Kohonen::Demo::RGB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::NeuralNet::Kohonen::Demo::RGB
CPAN shell
perl -MCPAN -e shell install AI::NeuralNet::Kohonen::Demo::RGB
For more information on module installation, please visit the detailed CPAN module installation guide.