How many principal components to take?

To decide how many eigenvalues/eigenvectors to keep, you should consider your reason for doing PCA in the first place. Are you doing it for reducing storage requirements, to reduce dimensionality for a classification algorithm, or for some other reason? If you don’t have any strict constraints, I recommend plotting the cumulative sum of eigenvalues (assuming … Read more

cocktail party algorithm SVD implementation … in one line of code?

I was trying to figure this out as well, 2 years later. But I got my answers; hopefully it’ll help someone. You need 2 audio recordings. You can get audio examples from http://research.ics.aalto.fi/ica/cocktail/cocktail_en.cgi. reference for implementation is http://www.cs.nyu.edu/~roweis/kica.html ok, here’s code – [x1, Fs1] = audioread(‘mix1.wav’); [x2, Fs2] = audioread(‘mix2.wav’); xx = [x1, x2]’; yy … Read more

tech