AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

China_A_share_market_tushare.py cannot run correctly.

Open
#66 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
1.2k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

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]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.