Skip to content
CqsiPublic

About

From scratch, neural network in C++

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

42 Commits

Folders and files

Repository files navigation

ML from Scratch

A small C++ neural network that trains on MNIST, reports training and test accuracy, and saves its dense-layer weights under models/example/.

Build

From the project root:

make train

To build the drawing prediction app, SFML must be available on your system. On macOS, the simplest setup is:

brew install sfml
make draw_predict

Then run:

make run-draw

Use the on-screen buttons, press Enter to predict, press C to clear, or press Escape to quit.

Run

Keep the MNIST files in data/, then run:

./train

The trained parameters are written to models/example/layer1.txt and models/example/layer2.txt.

Application files are separate entry points. Do not compile train.cpp and draw_predict.cpp into the same executable.

About

From scratch, neural network in C++

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages