We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In 01_frozenlake_q_learning.py, every iteration you call sample_env() only one time.
01_frozenlake_q_learning.py
while True: iter_no += 1 s, a, r, next_s = agent.sample_env() agent.value_update(s, a, r, next_s) reward = 0.0 ...
I think this can be improve by calling sample_env() for many time in one iteration. like this:
while True: iter_no += 1 for _ in range(1000): s, a, r, next_s = agent.sample_env() agent.value_update(s, a, r, next_s) reward = 0.0 ...
It can solve in much less iterations.
Is this valid or I misunderstand the concept of q-learning?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
01_frozenlake_q_learning.py
, every iteration you call sample_env() only one time.I think this can be improve by calling sample_env() for many time in one iteration. like this:
It can solve in much less iterations.
Is this valid or I misunderstand the concept of q-learning?
The text was updated successfully, but these errors were encountered: