Feature Selection for Supervised Learning and Compression