Text this: From statistical mechanics to machine learning: effective models for neural activity