Skip to content

SamClarke2012/neural_net_handwriting

 
 

Repository files navigation

neural_net_handwriting

A demo project to brush up my machine learning skills by writing an image recognition neural network from scratch in C.

input sample

This uses a typical 3-layer multi-layer perceptron. Training time is about 3 seconds for 80% correct, and 30s for 96% correct against the competition MNIST set of hand-written digits, which is pretty speedy for a simple C program.

  • Hand-written linear algebra code in C, refined with asm inspection, and cache efficiency. e.g. replacement for numpy etc. Matrix multiplication etc.
  • Hand-written CSV parser for reading the data.
  • Hand-written image output for testing the data.

Note that I didn't include the test data files because they are pretty big. I used the CSV versions which you can download from https://pjreddie.com/projects/mnist-in-csv/.

cloc stats

About

neural network for handwriting recognition from scratch in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.8%
  • Shell 0.2%