AI::ANN::Neuron - a neuron for an artificial neural network simulator
version 0.002
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.
$neuron->ready( [$input0, $input1, ...], {$neuronid => $neuronvalue, ...} )
All inputs must be provided or you're insane. Returns 1 if ready, 0 otherwise.
$neuron->execute( [$input0, $input1, ...], {$neuronid => $neuronvalue, ...} )
All inputs must be provided or you're insane Returns raw value (linear potential)
$neuron->get_inputs()
Returns a hashref of the input values => weights
$neuron->get_neurons()
Returns a hashref of the neuron values => weights
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.