AI-NNFlex
view release on metacpan or search on metacpan
examples/bp.pl view on Meta::CPAN
# load in the data
initData();
# train the network
for(my $j = 0;$j <= $numEpochs;$j++)
{
for(my $i = 0;$i<$numPatterns;$i++)
{
#select a pattern at random
$patNum = (rand()*$numPatterns)-0.001;
#calculate the current network output
#and error for this pattern
calcNet();
#change network weights
WeightChangesHO();
WeightChangesIH();
}
( run in 0.474 second using v1.01-cache-2.11-cpan-49f99fa48dc )