The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

AI::NNFlex::backprop

  • This module is the backpropagation algorithm for NNFlex. it is included in the NNFlex namespace at run time. See documentation below for standard methods.

    Copyright (c) 2004-2005 Charles Colbourn. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AI::NNFlex::backprop::learn

  • Takes as a parameter a reference to the desired output pattern, performs one learning pass back through the network with normal backprop procedures to bring the network closer to convergence.

    This package is imported into the NNFlex namespace at runtime via a parameter to the network object.

    syntax: $network->learn([0,1,1,0]);

AI::NNFlex::backprop::learn

  • learn is the main method of the backprop module. It calls calc_error to calculate the output error, calls output_adjust to adjust the weights from the last hidden to the output layer, then calls hidden_adjust to adjust the weights to the hidden layers finally it returns the network sqrd error.

AI::NNFlex::backprop::hiddenToOutput

Performs weight changes for all nodes in the output layer nodes 'connectedNodesWest' attributes, based on backprop Output weights delta

AI::NNFlex::backprop::hiddenOrInputToHidden

This subroutine calculates and applies delta weights that are not directly derived from the output layer. I.e. if you have a 2 layer network this will never get called.

If you have a 3 layer network this will be called to delta the weights between input and hidden layers.

If you have a 4 layer network it will be called to delta the weights between the two hidden layers, and the input to hidden layer

AI::NNFlex::backprop::sqrErr

  • Calculates the network squared error after a single backprop pass. Internal to ::backprop

11 POD Errors

The following errors were encountered while parsing the POD:

Around line 32:

'=item' outside of any '=over'

Around line 48:

You forgot a '=back' before '=head1'

Around line 50:

'=item' outside of any '=over'

Around line 112:

You forgot a '=back' before '=head1'

Around line 114:

'=item' outside of any '=over'

Around line 162:

You forgot a '=back' before '=head1'

Around line 164:

'=item' outside of any '=over'

Around line 200:

You forgot a '=back' before '=head1'

Around line 202:

'=item' outside of any '=over'

Around line 280:

You forgot a '=back' before '=head1'

Around line 282:

'=item' outside of any '=over'

=over without closing =back