HN Hall of Fame Weekly email

A Neural Network in 11 Lines of Python

iamtrask.github.io Books & learning Tutorials & guides AI & data Class of 2017-10 Hall of Fame
Screenshot of iamtrask.github.io captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 4 calendar years, with breakout response in 2 of them.

submissions
7
submitters
5
observed span
2015–2025
peak thread · 41 comments
341 pts
latest 20+ return · 2017-10-18
234 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

At the risk of being pedantic...if you're not familiar with data/math work in Python, the `np` word refers to "numpy", which is an extension to Python that includes array and matrix math...so the OP needs 12 lines, the first being: import numpy as np

danso·341-point thread·

3blue1brown is currently doing a terrific series on how neural networks work, which nicely compliments this blog post. https://www.youtube.com/watch?v=aircAruvnKk&list=PLZHQObOWTQ...

I am sick of reading about anything "deep" and "neural" on Hacker News (especially hype/puff pieces), but this blog post is so well-written that I'm upvoting it despite being about ANNs. I guess proper knowledge is the opposite of hype anyway. I wish research papers on AI were a bit more like this and bit less like what they are.

gambler·82-point thread·

https://news.ycombinator.com/item?id=9886555

sctb·7-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
674

reference only — not used in Hall rules or ranking

Total comments
86

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2015-07-14Beginner Tutorial: A Neural Network in 11 Lines of Python (or Less)williamtrask20
2015-07-14A Neural Network in 11 Lines of PythonFirst breakout · Best threadadamnemecek34141
2015-07-17A Neural Network in 11 Lines of Pythonbpolania71
2016-01-14A Neural Network in 11 Lines of Python (Part 1)Anilm310
2016-03-28A Neural Network in 11 Lines of Pythondevy8216
2017-10-18A Neural Network in 11 Lines of Python (2015)Hall induction · Latest 20+ point returnwilliamtrask23426
2025-04-04A Neural Network in 11 lines of Python (2015)williamtrask72