645 points · by adamnemecek · 9y ago · 99 comments
Here is a tool you can play with to visualize this: http://playground.tensorflow.org
If you liked this video, try this different visual intuition of what a neural network does that I find even better:
http://colah.github.io/posts/2014-03-NN-Manifolds-Topology/
Also, remember that back propagation is a very general algorithm, it works not only on linear transformation weights but on any direct acyclic computation graph that is differentiable in its weights.
[0] https://www.cs.cmu.edu/~venkatg/teaching/CStheory-infoage/ch...
For example, learning geography by flat map projections only. No matter what projection you use there is a trade off, and you end up instilling both the pro and the con of that trade off as intuition.
Also anything related to topology, which is important when you are looking at decision boundaries, becomes counterintuitive in high dimensions, because so many things can be adjacent at the same time.
http://worrydream.com/refs/Hamming-TheArtOfDoingScienceAndEn...
(I assume Bret Victor has permission to host the PDF on his website, he is far from an anonymous pirate)
I would modify that slightly and say rather just through "intuition". Visualization helps a lot, but you can also have great intuition from situations, stories, feelings, etc (anything that hits the non-reasoning part of the brain i.e. your "gut feeling"). IMHO one of the biggest problems in mathematics and science education is that we spend too much time working on things which humans are bad at (precise calculations) and far too little doing the 'rough estimation' and 'intuition' work which we have been evolutionarily optimized for and which is essential to us for actually remembering and understanding how things work.
I think that one of the fundamental problems is that to be a visualization machine, you need to have easy access of the GPU and OpenGL is provides anything but. I think that shadertoy (shadertoy.com) is the thing that comes the closest but the learning curve is kinda steep.
I know that people like Alan Kay, Bret Victor or Michael Nielsen (his post was on the fp the other day https://news.ycombinator.com/item?id=15616637) share these sentiments but this is a task bigger than a single people.
Idk what I really mean by "organized push". I'm not sure if the problem is well defined too
That’s not to say that a purely artistic data visualization has no value, but it’s not academic. (I admit I am guilty of that at times)
Here's a tool a colleague of mine made for inline "visual debugging" for e.g. computer vision, written in c++: https://github.com/lightbits/vdb. I haven't used it myself, but when he presented it I think it made a lot of sense to have these sorts of tools for processing data in real time.
If you can afford it and enjoyed this video, consider supporting him on Patreon. https://www.patreon.com/3blue1brown
A couple of hours of watching time built an intuition and understanding of linear algebra and the broader maths around it that 4 years of university training didn't give me. That's a little unfair, because I obviously learnt a lot on the courses that make these videos easier to understand, but man, they're so well done.
https://www.youtube.com/watch?v=aircAruvnKk
https://www.youtube.com/watch?v=IHZwWFHWa-w
https://www.youtube.com/watch?v=Ilg3gGewQ5U (Original video)
However, he actually recommends against using his tools. He suggests a better option is to use traditional animation tools.
I'm actually not sure what one would use for more traditional animations of his style though. I mean, theoretically you can use blender/etc for most 3d things, but how easy would it be to make something math-based there? Hopefully someone with some real animation experience can chime in.
I didn't know about this, and it's a nice find
Now I have some problems I'd like to solve with ML. So assuming that I understand the basic concepts, what's the HN recommendation for a good library/system to get started with on doing some practical ML with neural nets?
Would TensorFlow be the best way to get into it?
I'm often pretty skeptical of e-books and self publications, but the above link is pretty good (and the video series linked here references it as well.) The Goodfellow book that another commenter mentioned is a high-quality survey of the field and a nice, high-level overview of different research directions in deep learning, but isn't as pragmatic as an introduction.
If you're interested in general machine learning, the Elements of Statistical Learning, by Tibsihirani et. al is great; a more applied book is Applied Statistical Learning by the same author. For a more applied view, I'd check out Tensorflow or PyTorch tutorials; there's no good book, as far as I'm aware, because the tech changes so quickly.
I've done a series of videos on how to do deep learning that might be useful; if you're interested, there's a link in my profile.