Show HN: Backwards automatic differentiation in ~100 lines of Python
2 by AirFig | 0 comments on Hacker News.
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.
2 by AirFig | 0 comments on Hacker News.
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.