Created
November 3, 2021 21:47
-
-
Save rian-dolphin/60a603c0a24e2d91ceb58c1508841742 to your computer and use it in GitHub Desktop.
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
model.eval() | |
with torch.no_grad(): | |
predictions, _ = model(train_scaled[-train_periods:], None) | |
#-- Apply inverse transform to undo scaling | |
predictions = scaler.inverse_transform(np.array(predictions.reshape(-1,1))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment