Closed alexander34ro closed 3 years ago
(x - x[0]) / x[0]
sequences = []
for i in (0...N-50):
sequences.push(data[i:i+50])
To construct the sequences we could do like this: timeseries is a numpy array
sequence_ix = [range(i, i+sequence_length) for i in range(timeseries_length - sequence_length + 1)]
sequences = [timeseries[ix] for ix in sequence_ix]
Normalize: