Learning Lie Group Symmetry Transformations with Neural Networks