-
Notifications
You must be signed in to change notification settings - Fork 49
Wrong info in Gym tutorial #239
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
Comments
Can you elaborate? From what I can tell it's correct. |
If I can choose between blocking player A or player B, the sentence in the tutorial says that my action integer can be 0 or 1 but since it is a spatial action it has to be higher than the number of number of non-spatial actions to get past Instead, the integer is in the range [0, len(action_space)] which is implicit. |
Unless |
Thanks for the clarification, I see your point and agree. We should explain how the action mask works here. I'll see what I can do! |
How about something along these lines? Action spaceIn botbowl's core engine all actions have a type, and some of the types also require a position. Read more about actions in the scripted bot tutorials. The gym environment has unrolled the spatial dimension into a one dimensional action space (see picture below). By doing so it becomes easy to use state-of-the-art algorithms, but it's worth considering that compared to many of the standard reinforcement learning benchmarks we have orders of magnitude larger action space. The action of the environment in an integer, let's say |
This is better! If the scripted bot tutorials contain important info about the action space, I think it should be included here. What are the paragraphs you are thinking of? |
I don't believe this is true in https://njustesen.github.io/botbowl/gym.html:
"The action space is discrete, the action is an int in the range 0 <= action_idx < len(action_mask)."
The text was updated successfully, but these errors were encountered: