Comparing the Sparse encoder with the Additive Gaussian Noise encoder