Discovering Sparse Representations of Lie Groups with Machine Learning