Machine learning outperforms thermodynamics in measuring how well a many-body system learns a drive