-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'tensorflow.contrib' #5
Comments
So I guess for now Tensorflow <2.0 and Python =<3.7 is required. |
Yes, stable baselines only supports tf 1.X for now, there are some tf 2 forks, but I'm not sure if there is something far enough yet. |
The stable-baselines library currently supports Tensorflow versions from 1.8.0 to 1.15.0, and does not work on Tensorflow versions 2.0.0 and above. Source Use this command to install tensorflow 1.15. |
Stable baseline now supports TF2: https://github.com/DLR-RM/stable-baselines3 |
@tinof |
Yes, you are right. As I am still kinda new in reinforcement learning, I would need some insight/advices from the expert. Why self._reward being set to zero at the beginning of the function and why it has to be reset to zero when self._reward > 1.5? By the way, I would like to implement sortino / omega as rewarding scheme instead of profit only rewarding scheme. |
Ah, I forgot why I did that. Maybe just trying something out.
You can check out here. |
Man, how did you do that? I'm trying to run with stable-baselines3, but i've some problems with libraries, like ACER, maybe you can share your code for gym, strategy and deep_rl? |
What an interesting project, thanks for this. I've tried to run the demo to train an agent, but got this error:
Is it related to this?
`tensorflow.contrib is being removed in version 2.0``
If so, I could not fix it with this:
https://github.com/deetungsten/stable-baselines
Any other ideas? Should I just revert to Python 3.7 and Tensorflow <2.x ?
The text was updated successfully, but these errors were encountered: