google-deepmind / dqn_zoo

DQN Zoo is a collection of reference implementations of reinforcement learning agents developed at DeepMind based on the Deep Q-Network (DQN) agent.
Apache License 2.0
451 stars 78 forks source link

Specifying CSV Write Path Creates FileNotFoundError #6

Closed RylanSchaeffer closed 3 years ago

RylanSchaeffer commented 4 years ago

When I specify the --results_csv_path="/tmp/dqn_zoo/c51/pong/1/results.csv", I receive an error:

[Errno 2] No such file or directory: '/tmp/dqn_zoo/c51/pong/1/results.csv'

My suspicion is that nothing creates the necessary directories /tmp/, /tmp/dqn_zoo/, etc.

jqdm commented 3 years ago

Thanks for reporting, CsvWriter will create intermediate directories now, see eab9679b06f4f7d1b017a31197b7b4869003e7d5.