Skip to content

Commit

Permalink
decrease learning rate
Browse files Browse the repository at this point in the history
  • Loading branch information
schauppi committed May 17, 2024
1 parent 1797a03 commit ab82594
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified images/mLSTM_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/sLSTM_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/utils/test_mLSTM.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# [batch_size, seq_len, hidden_size/features]

model = mLSTM(input_size=input_size, hidden_size=hidden_size, mem_dim=mem_dim)
optimizer = optim.Adam(model.parameters(), lr=0.001)
optimizer = optim.Adam(model.parameters(), lr=0.01)
criterion = nn.MSELoss()

for epoch in range(500):
Expand Down
6 changes: 3 additions & 3 deletions src/utils/test_sLSTM.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
from src.utils.sine_wave import generate_sine_wave

input_size = 5
hidden_size = 10
hidden_size = 5
mem_dim = 5
seq_len = 100
num_sequences = 1
num_sequences = 2

data = generate_sine_wave(
seq_len=seq_len, num_sequences=num_sequences, input_size=input_size
)

model = sLSTM(input_size=input_size, hidden_size=hidden_size)
optimizer = optim.Adam(model.parameters(), lr=0.001)
optimizer = optim.Adam(model.parameters(), lr=0.01)
criterion = nn.MSELoss()

for epoch in range(500):
Expand Down

0 comments on commit ab82594

Please sign in to comment.