Generalizable autoregressive modeling of time series through functional narratives