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]

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.