Artificial Neural Networks

Using Forth for ANN on a Raspberry Pi

This blog describes the progress made in learning to program a Pi for Artificial Neural Networks (ANN).  Instead of using something sensible like Python, I am using Forth so that I have to program all the matrix multiplications etc so that I will understand the method better.  For further information on the Forth system, see:  www.rforth.uk

I have been greatly assisted by an excellent book called “Make Your Own Neural Network” by Tariq Rashid, which has plenty of example calculations and explanations.

At the moment I am using a 3-layer system of 10, 7 and 4 nodes for the input, hidden and output layers. This is to use a simple example of coding a number from 0 to 9 as a binary – at least I know what the answer should be.  Obviously, one doesn’t need a neural network to do this, so this is just an example to get used to the method.

Advertisements