|
AI::Perceptron - An implementation of a Perceptron |
AI::Perceptron - An implementation of a Perceptron
use AI::Perceptron;
This module is meant to show how a single node of a neural network works to beginners in the field.
The only mode of training the weights supported at this point in time is the Stochastic Approximation of the Gradient-Descent model.
Inputs => number of inputs (scalar)
N => learning rate (scalar)
W => array ref of weights (applied to the inputs)
The Number of elements in W must be equal to the number of inputs plus one. This is because W[0] is the Perceptron's threshold (so W[1] corresponds to the first input's weight).
Default values are: 1, 0.05, and [random], respectively.
Note that this training method may undo previous trainings!
Statistics::LTU, the ASCII model contained in Perceptron.pm.
U<Machine Learning>, by Tom M. Mitchell
Steve Purkis <spurkis@epn.nu>
Copyright (c) 1999, 2000 Steve Purkis. All rights reserved. This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
AI::Perceptron - An implementation of a Perceptron |