Created
May 30, 2020 18:29
-
-
Save Vsanku01/ee60f7e0a079577ba9c051c220fe168e to your computer and use it in GitHub Desktop.
Predictions
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