Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

nn.c

This is a minimal implementation of a neural network in C that should shed some light on how neural networks learn.

It aims to be as transparent as possible by using only C with no external functions.

The network uses the softsign activation function and mean squared error (MSE) loss function (to avoid pow()).

It has a fixed architecture: two inputs, one hidden layer with two neurons, and one output. It can learn logic gates.

Because everything is static and the network is very small, gradient calculation functions can be pre-computed, so backpropagation does not need to be implemented.

Note: This project will not be very helpful if you have no idea how neural networks work. For that you should checkout Karpathy's video.

About

Simplest possible implementation of a neural network in C.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages