Using matrix-product states for time-series machine learning