A C implementation of Karpathy's micrograd: a scalar-valued autograd engine and a neural net library.
To run the test, use the following commands:
make
./micrograd
test.c
contains four data points. Therefore, we generate one .dot
file per data point at the end of the training loop. To visualize it as a png
, run the following command:
dot -Tpng graph0.dot -o graph0.png
- add layers
- add MLP
- loss fn & gradient descent optimization
- add more non-linear fns
- add graph fns
- generalize pow fn
- rewrite to make it less disgusting