Backwards automatic differentiation in ~100 lines of Python
Backwards automatic differentiation in ~100 lines of Python
Inspired by the recent posts on implementing forwards mode automatic differentiation, here's an attempt at the backwards mode, which is often more efficient when your function depends on many variables but outputs just one value.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Querying 50k Gameservers in 100 lines of Python
Sentiment Analysis in 100 lines of Python
Arnie SMTP buffer server in 100 lines of async Python
Hangman in 3 lines of Python
Cppyy: Automatic Python-C++ bindings
Mini-swe-agent achieves 65% on SWE-bench in 100 lines of python
From-Scratch MLP Classifier in 100 Lines [Python]
A Brainfuck interpreter in 100 lines of C
A very simple Lisp interpreter in 250 lines of literate Python
A Reddit clone in 100 lines of Python