Skip to content

ragulsuryas/micrograd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micrograd

micrograd is an exact reimplementation of micrograd by Andrej Karpathy, written for educational and experimental purposes.

This project features a minimalistic automatic differentiation engine and a tiny neural network module — all built from scratch and under 100 lines of code.

Features

  • Reverse-mode autodiff (backpropagation)
  • Scalar-based computation graph
  • Tiny but expressive neural network (MLP)
  • Easy to read and extend

Files

  • train.py — sample training loop using the MLP class
  • micrograd/ — contains the autodiff and neural net logic (copied exactly from micrograd)

Credits

This code is a faithful reproduction of micrograd by Andrej Karpathy.

License

Same license as the original micrograd — MIT.

About

This is a exact implementation of micrograd by Andrej Karpathy

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages