An Application Of Machine Learning To Statistical Physics: From The Phases Of Quantum Control To Satisfiability Problems