Lyapunov Learning at the Onset of Chaos