IndexError Traceback (most recent call last)
Cell In[43], line 1
----> 1 best_model_vecnormalize = sorted(
2 [filename for filename in os.listdir(f'{logpath}/ForexFullEURUSD-v1') if 'vecnormalize' in filename],
3 key=lambda x: int(x.split('_')[1])
4 )[-1]
IndexError: list index out of range
16%|████▎ | 800185/5000000 [06:43<18:47:54, 62.06it/s]
Eval num_timesteps=800000, episode_reward=0.05 +/- 0.00
Episode length: 99999.00 +/- 0.00
New best mean reward!
It looks like we've saved the model here.But I can't find it in folder "RL-trading\logs\training\dqn\ForexFullEURUSD-v1_1",It prints out []
_, best_model_path, log_path = get_model_path(0, f'{LOGS_PATH}/training', 'dqn', 'ForexFullEURUSD-v1', load_best=True)
best_model_vecnormalize = sorted(
[filename for filename in os.listdir(f'{logpath}/ForexFullEURUSD-v1') if 'vecnormalize' in filename],
key=lambda x: int(x.split('_')[1])
)[-1]
best_model_vecnormalize
'vecnormalize_800000_steps.pkl'
forex_full_eurusd_rl_experiments.ipynb
IndexError Traceback (most recent call last) Cell In[43], line 1 ----> 1 best_model_vecnormalize = sorted( 2 [filename for filename in os.listdir(f'{logpath}/ForexFullEURUSD-v1') if 'vecnormalize' in filename], 3 key=lambda x: int(x.split('_')[1]) 4 )[-1]
IndexError: list index out of range
16%|████▎ | 800185/5000000 [06:43<18:47:54, 62.06it/s] Eval num_timesteps=800000, episode_reward=0.05 +/- 0.00 Episode length: 99999.00 +/- 0.00 New best mean reward! It looks like we've saved the model here.But I can't find it in folder "RL-trading\logs\training\dqn\ForexFullEURUSD-v1_1",It prints out []
_, best_model_path, log_path = get_model_path(0, f'{LOGS_PATH}/training', 'dqn', 'ForexFullEURUSD-v1', load_best=True) best_model_vecnormalize = sorted( [filename for filename in os.listdir(f'{logpath}/ForexFullEURUSD-v1') if 'vecnormalize' in filename], key=lambda x: int(x.split('_')[1]) )[-1] best_model_vecnormalize 'vecnormalize_800000_steps.pkl'