From bd4cbe242a107fd1c0fbe072e2f04946e3d19b22 Mon Sep 17 00:00:00 2001 From: Jenil-S Date: Sun, 16 May 2021 14:39:00 +0530 Subject: [PATCH 1/6] Updated name from lstm_prediction.py_lf to lstm_prediction.py and also imported keras --- .../lstm/{lstm_prediction.py_tf => lstm_prediction.py} | 1 + 1 file changed, 1 insertion(+) rename machine_learning/lstm/{lstm_prediction.py_tf => lstm_prediction.py} (98%) diff --git a/machine_learning/lstm/lstm_prediction.py_tf b/machine_learning/lstm/lstm_prediction.py similarity index 98% rename from machine_learning/lstm/lstm_prediction.py_tf rename to machine_learning/lstm/lstm_prediction.py index 5452f0443f62..b9a26b8f384b 100644 --- a/machine_learning/lstm/lstm_prediction.py_tf +++ b/machine_learning/lstm/lstm_prediction.py @@ -6,6 +6,7 @@ """ import numpy as np import pandas as pd +from tensorflow import keras from keras.layers import LSTM, Dense from keras.models import Sequential from sklearn.preprocessing import MinMaxScaler From 49a18b93c5c5a0cc1decccbec024060b1af133a5 Mon Sep 17 00:00:00 2001 From: Jenil-S Date: Mon, 17 May 2021 11:38:51 +0530 Subject: [PATCH 2/6] Edited the changes --- machine_learning/lstm/lstm_prediction.py | 1 - 1 file changed, 1 deletion(-) diff --git a/machine_learning/lstm/lstm_prediction.py b/machine_learning/lstm/lstm_prediction.py index b9a26b8f384b..5452f0443f62 100644 --- a/machine_learning/lstm/lstm_prediction.py +++ b/machine_learning/lstm/lstm_prediction.py @@ -6,7 +6,6 @@ """ import numpy as np import pandas as pd -from tensorflow import keras from keras.layers import LSTM, Dense from keras.models import Sequential from sklearn.preprocessing import MinMaxScaler From 592305ad34bb0868b38f72d0f7d9bd889ce81ca1 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 17 May 2021 14:04:59 +0200 Subject: [PATCH 3/6] tensorflow 2.5 is has shipped!!! --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 349d88944656..8bbb8d524ed4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ beautifulsoup4 fake_useragent -keras; python_version < '3.9' +keras lxml matplotlib numpy @@ -13,5 +13,5 @@ scikit-fuzzy sklearn statsmodels sympy -tensorflow; python_version < '3.9' +tensorflow xgboost From 503149e9985c8ca12a829a82c271dee81c3923d6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 17 May 2021 14:15:29 +0200 Subject: [PATCH 4/6] Update lstm_prediction.py --- machine_learning/lstm/lstm_prediction.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/machine_learning/lstm/lstm_prediction.py b/machine_learning/lstm/lstm_prediction.py index 5452f0443f62..c1190296cf1c 100644 --- a/machine_learning/lstm/lstm_prediction.py +++ b/machine_learning/lstm/lstm_prediction.py @@ -6,9 +6,10 @@ """ import numpy as np import pandas as pd -from keras.layers import LSTM, Dense -from keras.models import Sequential from sklearn.preprocessing import MinMaxScaler +from tf.keras.layers import LSTM, Dense +from tf.keras.models import Sequential + if __name__ == "__main__": """ From 65dce99be473f71e7d6c3790e2d42b31f14882a6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 17 May 2021 14:21:28 +0200 Subject: [PATCH 5/6] Update lstm_prediction.py --- machine_learning/lstm/lstm_prediction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machine_learning/lstm/lstm_prediction.py b/machine_learning/lstm/lstm_prediction.py index c1190296cf1c..53c008a4a34b 100644 --- a/machine_learning/lstm/lstm_prediction.py +++ b/machine_learning/lstm/lstm_prediction.py @@ -7,8 +7,8 @@ import numpy as np import pandas as pd from sklearn.preprocessing import MinMaxScaler -from tf.keras.layers import LSTM, Dense -from tf.keras.models import Sequential +from tensorflow.keras.layers import LSTM, Dense +from tensorflow.keras.models import Sequential if __name__ == "__main__": From 2ccce8d602a4cb13beaa3294bc9c83bb3689dd01 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 17 May 2021 14:24:48 +0200 Subject: [PATCH 6/6] One blank line, not two? --- machine_learning/lstm/lstm_prediction.py | 1 - 1 file changed, 1 deletion(-) diff --git a/machine_learning/lstm/lstm_prediction.py b/machine_learning/lstm/lstm_prediction.py index 53c008a4a34b..6fd3cf29131d 100644 --- a/machine_learning/lstm/lstm_prediction.py +++ b/machine_learning/lstm/lstm_prediction.py @@ -10,7 +10,6 @@ from tensorflow.keras.layers import LSTM, Dense from tensorflow.keras.models import Sequential - if __name__ == "__main__": """ First part of building a model is to get the data and prepare