Improving forecasting by learning quantile functions