AI-NeuralNet-Kohonen-Visual
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Changes
Makefile.PL
MANIFEST
README
t/AI-NeuralNet-Kohonen-Visual.t
lib/AI/NeuralNet/Kohonen/Visual.pm
META.yml Module meta-data (added by MakeMaker)
t/AI-NeuralNet-Kohonen-Visual.t view on Meta::CPAN
# Find red and display on the training map
diag "# Best matching unit for the colour blue (�F)\n";
my $targets = [[0, 0, 1]];
my $bmu = $net->get_results($targets);
$net->plot_map (bmu_x=>$bmu->[1],bmu_y=>$bmu->[2],hicol=>'white');
# $net->main_loop;
# Create an empty map
# and populate with training data
diag "# Plotting results\n";
foreach my $bmu ($net->get_results){
$net->label_map(@$bmu->[1],@$bmu->[2],"+".@$bmu->[3]);
}
diag "Will automatically destroy this window in $delay seconds";
$net->{_mw}->after($delay*1000, sub{ $net->{_mw}->destroy } );
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.307 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )