Skip to content

Instantly share code, notes, and snippets.

@rian-dolphin
Created November 3, 2021 21:47
Show Gist options
  • Save rian-dolphin/60a603c0a24e2d91ceb58c1508841742 to your computer and use it in GitHub Desktop.
Save rian-dolphin/60a603c0a24e2d91ceb58c1508841742 to your computer and use it in GitHub Desktop.
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