import numpy as np def create_input_sequence(data, lookback): return data[-lookback:].reshape(1, lookback, 1)