Ba

Backwards automatic differentiation in ~100 lines of Python

Hacker News

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 card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntUnlikely to reach the leaderboard · Missing: mac, agents, macos
49%49% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
43%43% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: efficient · Missing: plus, platform, intuitive
41%41% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
38%38% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
33%33% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
27%27% predicted probability of success on BetaList, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
19%19% predicted probability of success on Acquire.com, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Qu
Querying 50k Gameservers in 100 lines of Python46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Querying 50k Gameservers in 100 lines of Python

Hacker News1
Se
Sentiment Analysis in 100 lines of Python52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Sentiment Analysis in 100 lines of Python

Hacker News4
Ar
Arnie SMTP buffer server in 100 lines of async Python61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Arnie SMTP buffer server in 100 lines of async Python

Hacker News3
Ha
Hangman in 3 lines of Python57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Hangman in 3 lines of Python

Hacker News58
Cp
Cppyy: Automatic Python-C++ bindings46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cppyy: Automatic Python-C++ bindings

Hacker News4
Mi
Mini-swe-agent achieves 65% on SWE-bench in 100 lines of python50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mini-swe-agent achieves 65% on SWE-bench in 100 lines of python

Hacker News7
Fr
From-Scratch MLP Classifier in 100 Lines [Python]62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

From-Scratch MLP Classifier in 100 Lines [Python]

Hacker News1
A
A Brainfuck interpreter in 100 lines of C58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Brainfuck interpreter in 100 lines of C

Hacker News1
A
A very simple Lisp interpreter in 250 lines of literate Python70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A very simple Lisp interpreter in 250 lines of literate Python

Hacker News5
A
A Reddit clone in 100 lines of Python60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Reddit clone in 100 lines of Python

Hacker News4