personal code used in the learning of time series analysis and machine learning