You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running 3_Model_creation_models_for_a_stock.py I'm receiving the following error:
Traceback (most recent call last):
File "3_Model_creation_models_for_a_stock.py", line 6, in <module>
from keras.backend import set_session
ImportError: cannot import name 'set_session' from 'keras.backend'
Is set_session needed? Line 14 appears to be commented out.
I'm using the following package versions:
keras 2.13.1
tensorflow 2.13.0
Note that I'm able to change
from tensorflow import keras
from keras.backend import set_session
TO from tensorflow.python.keras.backend import set_session
set_sesion is imported successfully.
To me, this implies that keras should not be included in the requirement doc since it is part of tensorflow.
The text was updated successfully, but these errors were encountered:
This sentence of yours is correct “this implies that keras should not be included in the requirements document since it is part of tensorflow.”
I don't know where changing that code could make the code fail, you need to know the points before affirming that you can remove the keras requirement.
Currently, the team lacks time for that task, if you want to make a small evaluation we will include it.
you need to know the points before affirming that you can remove the keras requirement
the points of what?
I was suggesting that either line 6 be removed, because set_session is not called
or
If set_session uncommented on line 16, then set_session should be imported from the appropriate location of the tensorflow package.
TensorFlow-stocks-prediction-Machine-learning-RealTime/3_Model_creation_models_for_a_stock.py
Line 6 in 386a580
When running
3_Model_creation_models_for_a_stock.py
I'm receiving the following error:Is set_session needed? Line 14 appears to be commented out.
I'm using the following package versions:
Note that I'm able to change
TO
from tensorflow.python.keras.backend import set_session
set_sesion is imported successfully.
To me, this implies that keras should not be included in the requirement doc since it is part of tensorflow.
The text was updated successfully, but these errors were encountered: