Training Strategies for Time Series: Learning for Prediction, Filtering, and Reinforcement Learning