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
Please recommend how users should synchronize versions of tf, keras and keras rl?
[OK ] Check that you are up-to-date with the master branch of Keras-RL. You can update with: pip install git+git://github.com/keras-rl/keras-rl.git --upgrade --no-deps
[ OK] Check that you are up-to-date with the master branch of Keras. You can update with: pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps
I install it through pip install the same hour as keras-rl:
>> pip install keras keras.version='3.1.1'
Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short). If you report an error, please include the error message and the backtrace.
Traceback (most recent call last):
Cell In[43], line 1
from rl.policy import LinearAlleniaedPolicy, EpsGreedyQPolicy
File ~\anaconda3\envs\reinf_learning_hw2\lib\site-packages\rl\policy.py:4
from rl.util import *
File ~\anaconda3\envs\reinf_learning_hw2\lib\site-packages\rl\util.py:3
from keras.models import model_from_config, Sequential, Model, model_from_config
ImportError: cannot import name 'model_from_config' from 'keras.models'
(~anaconda3\envs\reinf_learning_hw2\lib\site-packages\keras\models\__init__.py)
Usually i can workaround it myself by replacing keras.models to **tf**.keras.models in the source but this time I have no idea where to find model_from_config function.
Python: 3.10.14
tensorflow.version='2.16.1'
The text was updated successfully, but these errors were encountered:
Please recommend how users should synchronize versions of tf, keras and keras rl?
pip install git+git://github.com/keras-rl/keras-rl.git --upgrade --no-deps
I install it through
pip install
:pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps
I install it through
pip install
the same hour as keras-rl:>> pip install keras
keras.version='3.1.1'
My code
return
Usually i can workaround it myself by replacing
keras.models
to**tf**.keras.models
in the source but this time I have no idea where to find model_from_config function.Python: 3.10.14
tensorflow.version='2.16.1'
The text was updated successfully, but these errors were encountered: