diff --git a/README.md b/README.md index 6765f8d..0a1ce25 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Tinn (Tiny Neural Network) is a 200 line dependency free neural network library int main() { + // This example learns XOR. float in[SETS][NIPS] = { { 0, 0 }, { 0, 1 }, @@ -47,11 +48,11 @@ Tinn (Tiny Neural Network) is a 200 line dependency free neural network library return 0; } -For a quick demo, get some training data: +For a more complicated demo on how to learn hand written digits, get some training data: wget http://archive.ics.uci.edu/ml/machine-learning-databases/semeion/semeion.data -And if you're on Linux / MacOS just build and run: +And if you're on Linux / MacOS just build and run Tinn with the test file: make; ./tinn @@ -59,6 +60,10 @@ If you're on Windows it's: mingw32-make & tinn.exe +For the layman not accustomed to makefiles the makefile devolves into: + + gcc test.c Tinn.c -lm + The training data consists of hand written digits written both slowly and quickly. Each line in the data set corresponds to one handwritten digit. Each digit is 16x16 pixels in size giving 256 inputs to the neural network.