Modeling time series data for supervised learning