Dynamics of Supervised Learning with Restricted Training Sets