yacoubb / stock-trading-ml

A stock trading bot that uses machine learning to make price predictions.
GNU General Public License v3.0
598 stars 254 forks source link

tensorflow changes in version 2 #7

Open cruecker opened 4 years ago

cruecker commented 4 years ago

Hi yacoubb,

found this issue in your code regarding the files: basic_model.py tech_ind_model.py

Does not work anymore like this. File: basic_model.py from tensorflow import set_random_seed set_random_seed(4)

should be replaced with: import tensorflow tensorflow.random.set_seed(4)

File: tech_ind_model.py import tensorflow as tf from tensorflow import set_random_seed set_random_seed(4)

should be replaced with: import tensorflow tensorflow.random.set_seed(4)