Machine Learning and Invariant Theory