Open alexofficial opened 5 months ago
@alexofficial
Thank you for reaching out with the issues and solutions! The codes (both lines 694-697 and line 723) should definitely be fixed as you mentioned. Could you make a PR with the suggested update? We appreciate your help in improving the software.
Hi,
I tried to collect the offline dataset of an online trained model using the _obtain_steps function. I found an error there, in lines 694-697, where two parenthesis are missing inside the file: scope-rl/scope-rl/dataset/synthetic.py![image](https://github.com/hakuhodo-technologies/scope-rl/assets/6980418/d9801602-7304-4edc-a7f4-508613d632dd)
The solution is:
Secondly, there is a variable rollout_lengths (line 704), which causes an error in line 723 within the for loop. However, since there are no examples with _obtain_steps, I could not compare this. A quick solution was to simply change it from:
for rollout_step in
rollout_lengths[i]:to for
rollout_step in range(rollout_lengths[i]):`Note: I have now successfully trained an offline RL model with the _obtain_steps function. Let me know if I can contribute in any way :)