Text this: Input-output optics as a causal time series mapping: A generative machine learning solution