Learning and Control of Dynamical Systems