Created
May 30, 2020 19:20
-
-
Save Vsanku01/089523db18df6f428aefbceb91849f79 to your computer and use it in GitHub Desktop.
LSTM Pred
This file contains 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
test_predictions = [] | |
first_eval_batch = scaled_train[-length:] | |
current_batch = first_eval_batch.reshape(1,length,n_features) | |
for i in range(len(test)): | |
current_pred = model.predict(current_batch)[0] | |
test_predictions.append(current_pred) | |
current_batch = np.append(current_batch[:,1:,:],[[current_pred]],axis = 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment