Machine Learning methods for Parallel-in-time algorithms