Reservoir computing can effectively forecast the dynamics of nonautonomous systems with rapid changes in the phase of the external drive.