Tensorflow-2-Reinforcement-Learning-Cookbook
Tensorflow-2-Reinforcement-Learning-Cookbook copied to clipboard
sac_agent render error
@praveen-palanisamy I am unable to create render from trading_utils.py, not creating any charts in crypto_trading_continuous_env, neither in sac_agent. Using the same code given in the source directory. Please help
Hi @rajni1624 , Apologies for the delayed response. Just got to your message. What error are you getting? Assuming you were just not seeing any plots/charts rendered, Let's identify and fix your issue step-by-step:
-
Could you please confirm if you are able to run this IPython Notebook: Chapter04/crypto_trading_visual_env.ipynb and see the visualizations as shown in the last cell's output? If that does not work, could you please share the output that you are getting?
-
If that works as expected, You can then run this Notebook: Chapter04/crypto_trading_visual_continuous_env.ipynb to confirm if the charts work as expected in your python environment. Please share your outputs to identify any issue.
-
Finally, if both the above work but running the Python script: Chapter04/crypto_trading_visual_continuous_env.py directly does not work, it could be due to rendering/display setup on your machine. Are you by chance running it on a remote console with no display forwarding/attached?