Using LSTM to predict stock prices

Hey guys,
I am trying to wrap my head around this weird code chunk but I don't seem to be making nay headway.


Referred here by Forecasting: Principles and Practice, by Rob J Hyndman and George Athanasopoulos

I think you forgot it.