Kostis-S-Z / trading-rl

Deep Reinforcement Learning for Financial Trading using Price Trailing @ ICASSP 2019
218 stars 45 forks source link

File Directory error #19

Closed e20916 closed 3 years ago

e20916 commented 4 years ago

I am trying the run the code. I use Tensorflow=1.14 and keras=2.3.1. But the code gives me error:

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'trailing//e:100_s:500_w:100_28.10_23:48'

I change the data directory according to read.me .The code generates new folders as trailing and deng. But after that it gives me this error. How can i solve this?

Kostis-S-Z commented 4 years ago

Hello @e20916 , Are you running this on Windows? The file path formats on windows are different than in Linux and that might be the cause.

Did you try changing the " / " to " \ " in the paths? e.g this line needs to be converted FOLDER = METHOD + "/e:" + ... to this FOLDER = METHOD + "\e:" + ...