Small MLP implemented with nothing but C++ STL. It was a fun opportunity to practice C++ and work with backprop math directly.
make runBy default, make run trains on the UCI seeds dataset in this repo. Tweak hyperparams in main.cpp.
- Fully connected MLP and forward and backprop written by hand
- Only using the C++ STL:
std::vector,std::map,std::regex(for CSV ingest),<cmath>,<random>, etc. No third-party dependencies like Eigen or BLAS - Simple SGD training loop
On the included dataset: ~94% accuracy with 8 hidden units, 600 epochs, LR=0.2.