This project implements a simple neural network from scratch in C. It learns to approximate basic target functions through supervised learning, using gradient descent and backpropagation. What makes this project unique is its real-time graphical visualization using the Allegro graphics library.
๐งฉ Fully custom neural network implementation in C (no external ML libraries)
๐ Live training visualization, including:
- ๐ต Left side: graph showing target values vs. predicted values
- ๐งฎ Top-right: automatic graph of mean error over iterations
- ๐ธ๏ธ Bottom: dynamic visualization of the neural network itself (node color reflects activation values)
๐ ๏ธ Simple training on arbitrary datasets (hardcoded on a .txt)
โ๏ธAllegro 5 (graphics library)
Youโll need a C compiler and Allegro 5 installed. Training happens in real-time โ you can see the network learn.
โ๏ธ I coded this in 2023-2024 so it is not so well optimized !