yacoubb / stock-trading-ml

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

Tensorflow - set_random_seed to be replaced for Tensorflow v2.0 #3

Open PRAVEENBABUC opened 5 years ago

PRAVEENBABUC commented 5 years ago

The set_random_seed is now replaced by random.

Hence the code should be updated to

from tensorflow import random random.set_seed(4)