AI::ANN::Neuron - a neuron for an artificial neural network simulator
version 0.008
AI::ANN::Neuron->new( $neuronid, {$inputid => $weight, ...}, {$neuronid => $weight} )
Weights may be whatever the user chooses. Note that packages that use this one may place their own restructions. Neurons and inputs are assumed to be zero-indexed.
eta_inputs and eta_neurons are optional, required only if you wish to use the Gaussian mutation in AI::ANN::Evolver.
$neuron->ready( [$input0, $input1, ...], [$neuronvalue0, ...] )
All inputs must be provided or you're insane. If a neuron is not yet available, make it undef, not zero. Returns 1 if ready, 0 otherwise.
$neuron->execute( [$input0, $input1, ...], {$neuronid => $neuronvalue, ...} )
You /must/ pass the correct number of inputs and neurons, and undefined values /must/ be zeros, not undef. Returns raw value (linear potential)
Dan Collins <DCOLLINS@cpan.org>
This software is Copyright (c) 2011 by Dan Collins.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install AI::ANN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::ANN
CPAN shell
perl -MCPAN -e shell install AI::ANN
For more information on module installation, please visit the detailed CPAN module installation guide.