From 3c2da6e2f23e414bb7efb0124a04ce36eccc9b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CShashank?= Date: Tue, 15 Oct 2024 10:44:22 +0530 Subject: [PATCH] shorten the lines --- neural_network/lstm.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/neural_network/lstm.py b/neural_network/lstm.py index f99bb9965..4a9d289b0 100644 --- a/neural_network/lstm.py +++ b/neural_network/lstm.py @@ -345,14 +345,14 @@ class LSTM: if __name__ == "__main__": # Define the input data and hyperparameters - data = "LSTM Neural Networks are designed to handle sequences of data." - hidden_dim = 50 - epochs = 1000 - lr = 0.01 + # data = "LSTM Neural Networks are designed to handle sequences of data.This is just rantom test data" + # hidden_dim = 50 + # epochs = 1000 + # lr = 0.01 - # Initialize and train the LSTM network - lstm = LSTM(data, hidden_dim, epochs, lr) - lstm.train() + # # Initialize and train the LSTM network + # lstm = LSTM(data, hidden_dim, epochs, lr) + # lstm.train() - # Test the LSTM network and compute accuracy - lstm.test() + # # Test the LSTM network and compute accuracy + # lstm.test()