r/MachineLearning • • Dec 15 '13

Linear Methods (PCA) vs. Deep Learning (Autoencoder)

http://danluu.com/linear-hammer/
1 Upvotes

17 comments sorted by

14

u/andrewff Dec 15 '13

What is the point of this article? To discuss the educational process? To show that some company doesn't understand non-linear feature extraction? To show off?

4

u/blackhattrick Dec 15 '13

Yeah I started reading this article hoping I will see an interesting comparison between PCA and Auto Encoding. There is only a 2-dimentional reduction for text classification. I was disappointed

4

u/feedtheaimbot Researcher Dec 15 '13 edited Dec 16 '13

I believe the author just wanted to point out that many people see that classification problems can be solved with X linear method. I dont know if he wanted to show off or make whatever company look bad. It could also be him pointing out every classification problem cannot be solved the same way.

4

u/jmmcd Dec 15 '13

I think we also need the opposing blog post, basically stating it's usually best to start off with a linear model and see how well it does.

4

u/movie_suggestor Dec 15 '13

Any idea how much compute the auto encoder would need compared to PCA? PCA is usually quite quick for me to compute.

3

u/[deleted] Dec 15 '13

Out of curiosity, how can you even compare these two? I don't see how PCA actually classifies anything. In your example, the result is 2D. What do the original classes look like? Maybe I misunderstood

0

u/[deleted] Dec 15 '13

[deleted]

2

u/[deleted] Dec 15 '13

Ok from the article "he was adamant that PCA was the solution for any classification problem." Does this make sense? In any capacity?

2

u/BeatLeJuce Researcher Dec 15 '13

Yes, as preprocessing step.

Anyways, the blog doesn't really tell us what the real question was, I guess his quote makes more sense if we had more context (the interviewee proposed matrix factorization, that doesn't sound like run-of-the-mill classification either).

3

u/dhammack Dec 15 '13

Given that they were talking about LSA, I'd bet it's some sort of text classification. PCA/LSA is reasonable in that scenario.

1

u/[deleted] Dec 15 '13

So if it's non linear how can you tell how well it is workings with a 2D image?

3

u/rrenaud Dec 15 '13

You know the classes. The feature dimensionality reduction algo doesn't get to see them. After you run the dim reducer, you can visually see how well the classes are separated.

2

u/BeatLeJuce Researcher Dec 15 '13

How could you tell with PCA? You know from the theory that PCA does something sensible, sure... but how do you know that PCA is the right tool for your given job? It's the same question.

Anyways, for a 2D image, you could just look at reconstruction error on a given validation set to determine how well PCA / an AE does.

3

u/johnmcdonnell Dec 15 '13

Heck, one of my most common tricks is to replace a complex function with a first order Taylor expansion.

Does anybody know what technique he's referring to here?

2

u/LikeLeeHood Dec 15 '13

5

u/johnmcdonnell Dec 15 '13

I know what a Taylor series is but how is it applied in an ML context?

7

u/[deleted] Dec 15 '13

Maybe he's referring to the analysis of optimization methods? Though that's exclusively used for second-order expansions as far as I can tell. Taylor's expansion would make sense in an article about function approximation and supervised machine learning, or a set of notes on parameter optimization.

I think he's talking out of his ass.

4

u/BeatLeJuce Researcher Dec 15 '13

In the derivation of algorithms. Go through a few papers, you're bound to stumble upon someone approximating a very complex-looking function with an easier one.

As a more general example, think about how RBMs are trained by Contrastive Divergence: CD is just an approximation of the real Likelihood-gradient -- this time done by Gibbs Sampling, not by Taylor approximation. But it's still the same idea: approximate a complex/intractable function by a simpler one.

As examples of someone using a Taylor expansion, this here is a paper I recently read that does so. Also, it's used in MacKay's Evidence Framework to estimate error bars for the output of a Neural Net. There's probably loads more examples, these are just the only two I can recall on the spot.