Hacker News new | past | comments | ask | show | jobs | submit login

What are your thoughts on the vectorized represenation? I understood the object oriented representation after a while, but I've noticed that, despite what looks like magic at first, when there's a lot less code to look at with singular weight vectors for the whole network vs different kinds of neurons, setting up graph structures, etc.it's easier to grok.

This is probably just a personal preference though.

I find if you're tackling neural networks in the first place, it's great to have your fundamentals down in the first place though. I think a lot of the problem with people learning machine learning is that they just dive in to it without going back and understanding the moving parts that make up the whole.

I made that mistake personally when I was starting out a few years ago. I've seen that with others as well.




I like to think of the vectorized representation as just a nonlinear transformation to a higher dimensional space with a classifier afterwords. If you're familiar with linear algebra, then z = Wx, where W is a matrix of weights and x is a feature vector maps x (which could be something like 5 dimensional) to a new space (which could be like 50 dimensional). z is the representation of x in that new space. After this linear mapping, we apply a nonlinear transform (sigmoid, rectifier, etc). If we didn't have the nonlinear transform, then the entire model would just be linear! This follows from the fact that the composition of linear functions is itself linear.

The final layer is just a standard logistic regression classifier in the new (usually higher dimensional) space.


Haha I get that! I was just saying for someone learning it at first vs approaching it from an object oriented angle with individual neurons and having it be a graph data structure. It seems easier to tackle when you can summarize it exactly as you said there vs, oh there's these neurons with these connections and you forward propagate each individual weight vector then backpropagate etc...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: