Learning for Recurrent Neural Networks