notadamking / RLTrader

A cryptocurrency trading environment using deep reinforcement learning and OpenAI's gym
https://discord.gg/ZZ7BGWh
GNU General Public License v3.0
1.73k stars 540 forks source link

Error during optimize.py #71

Closed JakubSledz closed 5 years ago

JakubSledz commented 5 years ago

Optimize was running fine and after like 30min I got this message: Traceback (most recent call last): File "./optimize.py", line 13, in render_trained_model=True) File "D:\BTRL\lib\RLTrader.py", line 216, in train model.save(model_path) File "C:\Users\USER-KIN-00381\Anaconda3\envs\crypt\lib\site-packages\stable_baselines\ppo2\ppo2.py", line 385, in save self._save_to_file(save_path, data=data, params=params) File "C:\Users\USER-KIN-00381\Anaconda3\envs\crypt\lib\site-packages\stable_baselines\common\base_class.py", line 346, in _save_to_file with open(savepath, "wb") as file: FileNotFoundError: [Errno 2] No such file or directory: 'data\agents\PPO2MlpLnLstmPolicysortino__0.pkl

GeorgeMurAlkh commented 5 years ago

FileNotFoundError: [Errno 2] No such file or directory: 'data\agents\PPO2MlpLnLstmPolicysortino__0.pkl It clearly says that you don't have "such file or directory". You should investigate deeper and create 'agents' folder.

JakubSledz commented 5 years ago

Ok but I believe this folder should be created by the script right?

GeorgeMurAlkh commented 5 years ago

@notadamking added gitkeep to folder 'agents', to prevent this error. You are able to add this folder and check by your own. Or you may create few more issues in hope of getting help.