Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why do we retrieve episodes like this? #91

Open
jamilaandimen opened this issue Aug 27, 2021 · 0 comments
Open

why do we retrieve episodes like this? #91

jamilaandimen opened this issue Aug 27, 2021 · 0 comments

Comments

@jamilaandimen
Copy link

In DeepQLearning.py, when we switch levels, we save current level episodes with this line:
epi_env_array[name_agent][level[name_agent]]= episode[name_agent]
Then we initialize level and episode with these two lines:

level[name_agent] = (level[name_agent] + 1) % len(reset_array[name_agent])
episode[name_agent] = epi_env_array[name_agent][int(level[name_agent] / 3)]

As the level[name_agent] has already new correct value (due to % len(reset_array[name_agent]),
my question is why not replace :
episode[name_agent] = epi_env_array[name_agent][int(level[name_agent] / 3)]
with :
episode[name_agent] = epi_env_array[name_agent][level[name_agent])]
I'm guessing / 3 is due to the fact you have 3 initial positions in unreal_envs/initial_positions.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant