Symmetry-adapted representation learning