Data Science, Machine Learning, Time Series Forecasting, Lstm, Deep Learning.
np.array(X_test), np.array(X_forecast), n_steps_in, n_steps_out For this function, because the number of steps out is already fixed, I decided that the number of samples and train size are to be chosen by the user, and it will calculate the maximum possible steps in. Here’s an executed code and its