Serafeim Loukas, PhD
1 min readJul 23, 2020

--

this depends also on the loop. e.g. if you have `for i in range(60, 800):
X_train.append(training_set_scaled[i-60:i, 0])` then the first iteration uses the data 0:60 and the second the data 1:61. So, in that case the step is indeed 1 (time lag).

--

--

Serafeim Loukas, PhD
Serafeim Loukas, PhD

Written by Serafeim Loukas, PhD

Data Scientist @ Natural Cycles (Switzerland). PhD, MSc, M.Eng. Bespoke services on demand

Responses (1)