finsight-space / preprocess.py
gaidasalsaa's picture
add all
93bb728
raw
history blame contribute delete
114 Bytes
import numpy as np
def create_input_sequence(data, lookback):
return data[-lookback:].reshape(1, lookback, 1)