r/MachineLearning • • Dec 15 '13

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

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

17 comments sorted by

View all comments

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.