Skip to content

Thb1t/Neural_Network_from_Scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Neural Network From Scratch with Real-Time Visualization (C + Allegro)

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.

๐Ÿš€ Features

๐Ÿงฉ Fully custom neural network implementation in C (no external ML libraries)

NN image ๐Ÿ“ˆ 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)

๐Ÿ“ฆ Dependencies

โš™๏ธAllegro 5 (graphics library)

๐Ÿ“ How to Build

Youโ€™ll need a C compiler and Allegro 5 installed. Training happens in real-time โ€” you can see the network learn.

P.S.

โœ๏ธ I coded this in 2023-2024 so it is not so well optimized !

About

Neural Network + display

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published