|
When applying PCA/ZCA whitening to contrast-normalized image patches, people seem to use regularization, in which the whitening matrix is chosen to be
(where U and D are the eigensystem of the data covariance matrix). In the code I've seen, Is there a principled and automatic way of choosing Edit: the expression for W clarified |
|
You can regularize amount of variance of the data to keep, e.g. 90%, using the cumulative sum of the sorted eigenvalues. If you choose wisely, you avoid division by zero and do not need an epsilon. However, this just makes your threshold a bit more interpretable, you'll have to see what it does for your task. E.g. in the "algorithms for hyper parameter optimization" paper, James Bergstra et al also crossvalidate the ZCA energy.
(May 23 '12 at 15:02)
Oleg Trott
|