Matt Mazur

mattmazur.com · Personal blog · on HN since 2008

Matt Mazur, founder of Preceden, writes about startups and side projects, and a step-by-step backpropagation tutorial with worked numbers.

What HN saysCommenters recommend his backpropagation guide for its real numbers that let readers check their implementation, and they congratulate him on his startup work.
39HN people shared it
22linked it in comments
71stories submitted
1.7Kstory points
1 year agolast shared
2008people per year2026

Most-shared posts

  1. 1
    A step by step backpropagation example (2015)
    12 people · 195 points · first shared 2015 · 14 comments on HN
  2. 2
  3. 3
    Six Months of HackerNews Front Page Data
    4 people · 80 points · first shared 2010 · 16 comments on HN
  4. 4
  5. 5
    Memoirs of a Poker Bot Developer
    2 people · 84 points · first shared 2009 · 27 comments on HN
  6. 6
    Startup Blogs To Make You a Better Entrepreneur
    2 people · 77 points · first shared 2010 · 14 comments on HN
  7. 7
  8. 8
    Six Lessons Learned from Domain Pigeon’s First Six Weeks
    1 people · 122 points · first shared 2009 · 15 comments on HN
  9. 9
    Lessons learned from a failed poker software business
    1 people · 103 points · first shared 2008 · 66 comments on HN
  10. 10
    The Wrong Way to Get Noticed by YC
    1 people · 90 points · first shared 2008 · 50 comments on HN
  11. 11
  12. 12
    Experimenting with a Neural Network-based Poker Bot
    1 people · 39 points · first shared 2009 · 25 comments on HN
  13. 13
  14. 14
  15. 15
    Building a Shortstacking Poker Bot - A Visual History
    1 people · 17 points · first shared 2009 · 13 comments on HN

What HN people wrote when they linked it

Brajeshwar · 2023-01-04
Hey Matt, This is awesome. Congratulations and best of luck. I remember using it and we communicated (email), about your time in Iraq and how your built[1] Preceden. You upgraded my account while I was toying with few ideas and using it to plan timelines. Nice stumbling on it again there. 1. https://mattmazur.com/2016/01/04/building-a-startup-in-45-minutes-per-…
annnnd · 2016-12-20
For anyone trying to learn backpropagation but having trouble with math, I can't recommend Matt Mazur's "Step by Step" guide [0] enough. What is great is that he is using real numbers so that one can check implementation for correctness. [0] https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-exampl…
matt1 · 2011-05-28
Similar story... My senior year in high school I got hooked on an online multiplayer Tetris game called TetriNET. I eventually created a pretty sophisticated bot to play for me, which absolutely crushed the games. A friend recommended I submit it for consideration in the regional science fair, where I wound up taking first in the computer science category. Lots of details on the blog [1], including screenshots, source code, and details of the algorithms used. [1] http://www.mattmazur.com/2009/05/creating-a-tetrinet-bot/
codeslush · 2011-01-28
Mark Suster has really great info on his blog - though it might be a little more geared towards startups seeking funding: http://www.bothsidesofthetable.com/ A post here on HN from a month or so ago pointed to this blog for a number of great resources: http://www.mattmazur.com/2010/12/17-startup-blogs-to-make-you-a-better… Another: http://tappen.posterous.com/nice-summary-stanleytang-256-must-read-con… Don't forget to keep reading this site - you'll learn much, just try to not get addicted to it! Finally, start attending startup events - they come in many shapes and sizes and depending on your location you may have more or less to choose from. Checkout startupweekend.org to see if they have any events coming to a city near you.
sails · 2023-01-04
Congrats Matt! Very cool to see. A question. I'm trying to find a tool to visualise and document the evolution of obscure sports (purely because I find the interactions fascinating). It seems that your tool might be the perfect fit, especially the "writing" examples. I was wondering if it would be possible to visualise something along the lines of a quasi-directed graph. Nodes being specific instances of the inception of a "new" sport (hence the date requirement), and edges being the influence on other spots. Multiple edges for each node are possible, and all sports will have a start date and some an end date. I tried[2] with a basic POC but it seems the issue is that the nodes run without an end date, which breaks the dependency visualisation. One comment. Once logged in I wasn't easily able to get back to the landing page, which had some useful info around visualisation types that I wanted to review. And a note. I've apologised to a few people who I subjected to a variation on your SQL screener interview question [2], which contained far too much fiddling with SQLite time functions, entirely my mistake in ruining an otherwise great basic SQL test! [1] https://www.preceden.com/timelines/868890-obscure-sports?s=e0d469326e0… [2] https://mattmazur.com/2018/11/12/analyzing-89-responses-to-a-sql-scree…
cr0sh · 2019-04-15
> are neural nets deterministic at all? Given all their randomness, I'd assume not. That's actually an interesting question; I'm probably not the person to answer it, since my experience with NNs is admittedly on the "still learning" side of things, and that learning has not been via any credentialed sources...but I'm willing to take a stab at it. NN models - that is, the thing that results from training a neural network, are typically "fixed", in that once trained, the model doesn't change - at least classically. I imagine that somewhere out there, there may be NN models which can change as data they are processing is run through them, learning on the fly so to speak. I'd have to research it; I'm sure it's something that's done or been done? But normally, once a NN has been trained, it's model is "fixed" and doesn't change when inputs are presented to it. The training phase is - or appears to be - fairly stochastic. I'm not sure I'd want to call it random, though, because I don't recall any kind of random numbers being used during back-propagation. But the data that is presented to the neural network is usually randomized in presentation - and sometimes content. That is, say you're training the NN on recognizing horses. You might have several thousand images of horses, but you don't want to show just those. You might want to generate many more - rotate each one just a bit, skew it just a smidge, maybe change the color and/or contrast/brightness, etc - to in effect…
raffi · 2010-02-13
I recently saw a blog post where someone wrote about the feedback they received and they weren't happy. The same person then revised their questions and tried a more task oriented approach and they were much happier. http://www.i-proving.ca/space/David+Jones/blog/2010-01-27_1?showCommen… Then again, Feedback Army is just a usability testing tool. The right one for the job. I think it's best when a breadth of ideas are needed quickly or you need some ideas about where to start improving your site. You should use other methods to do testing that requires a lot of depth from one or two people. Here are a few more posts where folks have written up their experiences: http://visualwebsiteoptimizer.com/split-testing-blog/how-an-investment… http://www.mattmazur.com/2010/02/reflections-on-precedens-hackernews-l… (p.s. I run Feedback Army :))
woadwarrior01 · 2025-08-08
There's an old blog post[1] by the founder of LeanDomainSearch on this. [1]: https://mattmazur.com/2018/05/18/extracting-a-list-of-all-registered-c…
tyoma · 2021-09-22
You may also like this version: https://mattmazur.com/projects/aol-files-com/
ad404b8a372f2b9 · 2021-04-02
This is all you need to understand backpropagation, I give this link to all my students: https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-exampl…
jorgeleo · 2019-05-09
This tutorial explained to me at the exact level of detail: https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-exampl… It was detailed enough for me to do all the calculations in an excel workbook, 1 complete cycle (forward, backward, and forward with the learned weights) https://1drv.ms/x/s!Ar06sKFtc9d7goR5WQLo-RkB0XvWAA Which allowed me to play with the name and factors to understand better how they impact the network as a whole.
apetrov · 2017-11-26
I had a really good time adapting Karpatny's blog post to python myself but it didn't give me sufficient understanding so i continued with [1], then [2] and finally deciphering [3]. [1] https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-exampl… [2] http://peterroelants.github.io/posts/neural_network_implementation_par… [3] https://iamtrask.github.io/2015/07/12/basic-python-network/
hudibras · 2016-02-16
I knew I recognized that name somewhere. Matt had a bunch of really interesting articles a while back about building poker bots to play online. http://mattmazur.com/category/poker-bot/ Didn't know that he was active duty in the military at the time, though...
j_s · 2012-06-27
Circa 2009 (first Google result) non-US was 40% http://www.mattmazur.com/2009/03/a-brief-hackernews-traffic-analysis/
nollidge · 2010-08-05
I'm guessing UTC? The original dataset they link to[1] is in UTC. [1] http://www.mattmazur.com/2010/03/six-months-of-hackernews-front-page-d…
paulgb · 2010-07-05
Depending on what you want to do with it, but this might be what you're looking for: http://www.mattmazur.com/2010/03/six-months-of-hackernews-front-page-d…
shadowz · 2010-04-30
Don't think this will help, but it's cool nonetheless http://www.mattmazur.com/2010/03/six-months-of-hackernews-front-page-d…
gavinray · 2020-05-09
Why can't you model each neuron as an individual object with a unique UID in code? I am fortunate enough to have a friend that's fairly accomplished in ML and a really nice guy. He spent a video chat + code session with me where he helped me build an NN from scratch in Typescript, we replicated the network in the paper here: https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-exampl… Here's the Codesandbox link, if you notice the console output it (approximately) matches the figures from the paper above: https://codesandbox.io/s/node-typescript-vqszi?file=/example/app.ts I don't really understand much about ML or neural networks, but from a code perspective, if you have these data structures: class Neuron { id: number | void = neuronUidGen.next().value; incoming: Connection[]; outgoing: Connection[]; rate: number; bias: number; output: number; error: number; } class Connection { id: number | void = connectionUidGen.next().value; from: Neuron; to: Neuron; weight: number; } Why couldn't you manipulate these however you see fit? There's a Layer implementation in there that's commented out because it doesn't function right that could roughly accomplish something like this theoretically, right?
cwyers · 2015-09-04
Here's a few things that really helped me out: http://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-example… http://brenocon.com/blog/2013/10/tanh-is-a-rescaled-logistic-sigmoid-f… Sort of a high-level overview (some of this is particular to neural nets as they're implemented in JMP, a product made by SAS, I don't know how well they generalize): • Neural nets consist of an input layer, an output layer, and some number of hidden layers between the input and output layers • The hidden layers consist of a number of nodes, which can be thought of as “on-off” switches (called a “step function” if we’re using the proper term), although in practice they’re represented by a smooth sigmoid curve with an upper and lower bound that represent on and off. In JMP, this takes the form of a hyperbolic tangent function, which is bound between -1 and 1. • Each node has a value that’s called the bias, which if you’re thinking of the nodes as an on-off switch, is the threshold a linear combination of the inputs needs to reach to turn the node on. In the sigmoid curves output by JMP, the bias represents the point at which the hyperbolic tangent function returns 0, given a linear combination of the inputs. • A “deep learning” model is one that has more than one hidden layer; the lowest hidden layer serves as the input layer to the next hidden layer, and so on. • The output layer takes the nodes of the highest hidden layer and produces an output. When dealing with probability,…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close