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

Running error #5

Open
xfffrank opened this issue Aug 1, 2017 · 3 comments
Open

Running error #5

xfffrank opened this issue Aug 1, 2017 · 3 comments

Comments

@xfffrank
Copy link

xfffrank commented Aug 1, 2017

$ python market_pg.py ./kospi_10.csv pg.h5
  File "market_pg.py", line 86
    print "%s:\t%s\t%.2f\t%.2f\t" % (info["dt"], color + env.actions[action] + bcolors.ENDC, reward_sum, info["cum"]) + ("\t".join(["%s:%.2f" % (l, i) for l, i in zip(env.actions, aprob.tolist())]))
                                ^
SyntaxError: invalid syntax

How can I fix this?
I am new to RL.
Thanks!

@xfffrank
Copy link
Author

xfffrank commented Aug 1, 2017

The arrow points to 'aprob' .

@nateGeorge
Copy link

I think you're running python3, and it's an error for the print statement. This was written for python2. You could used 2to3 on Linux to convert it for python3.

@xfffrank
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants