Skip to content

Commit

Permalink
Taxi-v3 docs fix (openai#2360)
Browse files Browse the repository at this point in the history
* Changed the docstring of Taxi env

* Changed the docs of Taxi env
  • Loading branch information
RedTachyon authored Aug 26, 2021
1 parent 347a30a commit 4e38147
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/toy_text/taxi.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Observations:

There are 500 discrete states since there are 25 taxi positions, 5 possible locations of the passenger (including the case when the passenger is in the taxi), and 4 destination locations.

Note that there are 400 states that can actually be reached during an episode. The missing states correspond to situations in which the passenger is at the same location as their destination, as this typically signals the end of an episode.
Four additional states can be observed right after a successful episodes, when both the passenger and the taxi are at the destination.
This gives a total of 404 reachable discrete states.

Passenger locations:
- 0: R(ed)
- 1: G(reen)
Expand Down
3 changes: 3 additions & 0 deletions gym/envs/toy_text/taxi.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class TaxiEnv(discrete.DiscreteEnv):
Observations:
There are 500 discrete states since there are 25 taxi positions, 5 possible locations of the passenger (including the case when the passenger is in the taxi), and 4 destination locations.
Note that there are 400 states that can actually be reached during an episode. The missing states correspond to situations in which the passenger is at the same location as their destination, as this typically signals the end of an episode.
Four additional states can be observed right after a successful episodes, when both the passenger and the taxi are at the destination.
This gives a total of 404 reachable discrete states.
Passenger locations:
- 0: R(ed)
Expand Down

0 comments on commit 4e38147

Please sign in to comment.