AI-NNEasy
view release on metacpan or search on metacpan
lib/AI/NNEasy.hploo view on Meta::CPAN
L<AI::NNFlex>, L<AI::NeuralNet::Simple>, L<Class::HPLOO>, L<Inline>.
=> AUTHOR
Graciliano M. P. <gmpassos@cpan.org>
I will appreciate any type of feedback (include your opinions and/or suggestions). ;-P
Thanks a lot to I<Charles Colbourn <charlesc at nnflex.g0n.net>>, that is the
author of L<AI::NNFlex>, that 1st wrote it, since NNFlex was my starting point to
do this NN work, and 2nd to be in touch with the development of L<AI::NNEasy>.
=> COPYRIGHT
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
lib/AI/NNEasy.pm view on Meta::CPAN
L<AI::NNFlex>, L<AI::NeuralNet::Simple>, L<Class::HPLOO>, L<Inline>.
=head1 AUTHOR
Graciliano M. P. <gmpassos@cpan.org>
I will appreciate any type of feedback (include your opinions and/or suggestions). ;-P
Thanks a lot to I<Charles Colbourn <charlesc at nnflex.g0n.net>>, that is the
author of L<AI::NNFlex>, that 1st wrote it, since NNFlex was my starting point to
do this NN work, and 2nd to be in touch with the development of L<AI::NNEasy>.
=head1 COPYRIGHT
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
=cut
lib/AI/NNEasy/NN/feedforward.hploo view on Meta::CPAN
$node->{activation} += $$inputPatternRef[$counter] ;
}
else {
$node->{activation} = $$inputPatternRef[$counter] ;
}
}
++$counter ;
}
# Now flow activation through the network starting with the second layer
my ( $function ) ;
foreach my $layer ( @{$this->{layers}}[1 .. $#{$this->{layers}}] ) {
foreach my $node ( @{$layer->{nodes}} ) {
$node->{activation} = 0 if !$node->{persistent_activation} ;
$function = $node->{activation_function} ;
foreach my $connectedNode ( @{$node->{connectedNodesWest}->{nodes}} ) {
lib/AI/NNEasy/NN/feedforward.pm view on Meta::CPAN
$node->{activation} += $$inputPatternRef[$counter] ;
}
else {
$node->{activation} = $$inputPatternRef[$counter] ;
}
}
++$counter ;
}
# Now flow activation through the network starting with the second layer
my ( $function ) ;
foreach my $layer ( @{$this->{layers}}[1 .. $#{$this->{layers}}] ) {
foreach my $node ( @{$layer->{nodes}} ) {
$node->{activation} = 0 if !$node->{persistent_activation} ;
$function = $node->{activation_function} ;
foreach my $connectedNode ( @{$node->{connectedNodesWest}->{nodes}} ) {
( run in 0.386 second using v1.01-cache-2.11-cpan-0d8aa00de5b )