Git Product home page Git Product logo

mnist-cpp's Introduction

Neural network for mnist handwritten digits from scratch in C++

Usage

  1. get the mnist training and testing data here and extract it into a directory named data/
  2. make any changes you would like to the meta parameters of the network in the source code.
make
./train
./evaluate

(If you re-build, you'll probably have to delete the previous binaries beforehand.)

References

Story time

In 2019, college me was really into two things: neural networks and C/C++. So I tried to combine the two into one project: why not try to build a neural net, from scratch, in C++? After weeks of trying to understand and implement the math, it still did not work. And while I came back from time to time, I never managed to solve the last few remaining problems, so I pretty much considered it a lost cause.

3 years later I get inspired by a youtube video, a conversation with a former classmate and a recent re-write of another old project of mine. So I sit down one afternoon, get familiar with the codebase again, realize how awful it is, then get it working in 3 hours with 90.6% accuracy. The code is still awful, and will probably stay that way, but at least it works now and I have bragging rights.

mnist-cpp's People

Contributors

pmarkee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.