Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantPerkins committed Sep 13, 2022
1 parent 7bc21e3 commit 30f8275
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
validation_split = 0.20
test_split = 0.20

dataloader = TimeSeriesDataLoader(X, y, validation_split=validation_split, test_split=test_split, period=1000, batch_size=10)
dataloader = TimeSeriesDataLoader(X, y, validation_split=validation_split, test_split=test_split, period=1000, batch_size=32)

model = SimpleLSTM(X.shape[1], 100, 3, batch_first=True, dropout=0.5)
if cuda_available:
Expand All @@ -61,6 +61,8 @@

forecast, _ = model.forecast(X.unsqueeze(0))
forecast = forecast.flatten().cpu().detach().numpy()
print(f"Forecast, {forecast}")
print(f"Expected, {y}")

fig, axs = plt.subplots(ncols=2, figsize=(10, 5))

Expand Down

0 comments on commit 30f8275

Please sign in to comment.