Machine learning automorphic forms for black holes