Lecture notes on rough paths and applications to machine learning