Skip to content
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

China_A_share_market_tushare.py cannot run correctly. #66

Open
hujunyao opened this issue Jun 19, 2023 · 0 comments
Open

China_A_share_market_tushare.py cannot run correctly. #66

hujunyao opened this issue Jun 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hujunyao
Copy link

when run to
trained_ddpg = agent.train_model(
model=model_ddpg, tb_log_name="ddpg", total_timesteps=10000
)

it complains:
trained_ddpg = agent.train_model( tensorflow.python.framework.errors_impl.FailedPreconditionError: tensorboard_log/ddpg\ddpg_1 is not a directory.
How to fix it?

ps.
and another fix is in env_stocktrading_China_A_shares.py
def _get_date(self):
if len(self.df.tic.unique()) > 1:
'''
wrong code , date -->time
'''
date = self.data.date.unique()[0]
'''should be'''
date = self.data.time.unique()[0]

@YangletLiu YangletLiu added the bug Something isn't working label Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants