HNHacker News
TopNewBestAskShowJobs

tonio

19 karma · joined May 5, 2020

meet.hn/city/-22.9110137,-43.2093727/Rio-de-Janeiro

Socials:

- x.com/toinpu

---

submissionscomments
tonio··on Ultra simplified "MNIST" in 60 lines of Python with NumPy
Beautiful! Same in spirit as what I was going for, but even better. I really like the way the weights are updated in this one. Thanks for showing me this!
tonio··on Ultra simplified "MNIST" in 60 lines of Python with NumPy
you got me, lol. to be fair the only reason numpy is there is because truly pure python doesn't have matmuls, and I didn't think reimplementing it wouldn't serve a didactic purpose.

A cool idea for a v2 without numpy would be implementing matmuls with lists, matrix transpose with zip() and switching np.exp for math.exp. And getting all that on fewer lines as possible.