Perceptron is the simplest artificial neural network, a “Hello World” of neural networks.
It is in every ANN package, and there are many implementations of it in different languages in the Internet.
(load "perceptron") (perceptron)
The parameters are specified in the file parameters.txt
The program outputs the final weights of the perceptron.
I also uploaded two training sets to the same folder: one for and and another for or logical functions.
Testing for and:
Testing for or:
The program allows to specify the activation function (in the file activation-functions.lisp), the type of a combiner of weights and inputs to the neuron (it doesn’t have to be just a linear combination of them; file: combiners.lisp) and learning rules (learning-rules.lisp)
Right now, I only wrote the usual delta rule and a linear combiner. Will try to add more later.
I’ll be thankful for suggestions.