Last active
August 16, 2016 21:12
-
-
Save lukovkin/0563d42224a6529fea38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps_ahead = 5 # how much steps ahead to predict | |
dim = 1 # dimension of the input series | |
X_multi = X # copy input sequence to the separate variable in order not to add garbage to the original sequence | |
for i in range(0, steps_ahead): | |
predicted = model_train_dict['model'].predict(X_multi, batch_size=batch_size) | |
X_multi = np.append(X_multi, np.reshape(predicted[-1:], (1, 1, dim)), axis=0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment