Commit Graph

1491 Commits

Author SHA1 Message Date
J K Terry
8a870c923e Update environments.md 2021-09-23 16:26:08 -04:00
Jesse Farebrother
752ad7580a Fix loading of legacy states for gym.spaces.space:Space (#2419) 2021-09-23 15:51:43 -04:00
Jesse Farebrother
5f89135868 Move legacy Atari environments -> ale-py (#2411) 2021-09-22 19:11:21 -04:00
Rohan138
ae018346cb Add Dict helper methods (#2417) 2021-09-22 00:19:37 -04:00
Tristan Deleu
d35d211fee Forward environment properties to the wrapper (#2373)
* Forward environment properties to the wrapper, fixes #2175

* Add tests for property forwarding in Wrapper

* Rename klass to class_ in test_core
2021-09-17 18:02:59 -04:00
Jesse Farebrother
5a4709b158 Env plugins, remove gym.envs.internal and replace with __internal__ key (#2409) 2021-09-16 10:23:32 -04:00
Ahmed Omar
2754d9737e removed calls to reset from init (#2394)
* removed all calls to reset

* passing tests

* fix off-by-one error

* revert

* merge master into branch

* add OrderEnforcing Wrapper

* add orderenforcing to the docs

* add option for disabling

* add argument to EnvSpec
2021-09-16 10:16:49 -04:00
Jesse Farebrother
e212043a93 Add plugin system for third-party environments (#2383) 2021-09-14 22:14:05 -04:00
J K Terry
590db96e36 typo 2021-09-14 22:13:46 -04:00
RaghuSpaceRajan
c571b0d853 Make Tuple and Dicts be seedable with lists and dicts of seeds + make the seed in default initialization controllable (#1774)
* Make the seed in default initialization controllable

Since seed() is being called in default initialization of Space, it should be controllable for reproducibility.

* Updated derived classes of Space to have their seeds controllable at initialization.

* Allow Tuple's spaces to each have their own seed

* Added dict based seeding for Dict space; test cases for Tuple and Dict seeding

* Update discrete.py

* Update test_spaces.py

* Add seed to __init__()

* blacked

* Fix black

* Fix failing tests
2021-09-13 14:08:01 -04:00
Jesse Farebrother
0eabbaf8a2 Provide old default kwargs to Atari environments (#2405) 2021-09-13 12:35:40 -04:00
Ariel Kwiatkowski
7f863fd11a Changed .shape to be a property (#2397)
* Changed .shape to a property, and the internal representation of a shape to ._shape

* Minor docstring fix
2021-09-11 13:07:02 -04:00
Jesse Farebrother
f6742ea808 Remove AtariEnv in favour of official ALE Python package (#2348)
* Remove AtariEnv in favour of official ALE Python

* More robust frame stacking test case

* Atari documentation update
2021-09-11 13:04:41 -04:00
Xingdong Zuo
263a3419ef [Python 3]: replace time() with perf_counter() for better measurements of short duration. (#2385)
* Update record_episode_statistics.py

* Update stats_recorder.py

* Update async_vector_env.py
2021-09-11 13:03:54 -04:00
Xuehai Pan
a8f551ed44 Make MultiDiscrete a Tuple-like space (#2364)
* Make MultiDiscrete a Tuple-like space

* Update test cases for MultiDiscrete
2021-09-11 12:54:52 -04:00
J K Terry
8da6224b72 Update requirements.txt 2021-09-09 17:19:27 -04:00
J K Terry
9045cdf4cf fix box2d-py float 2021-09-09 17:19:15 -04:00
Costa Huang
b1b0086134 Add Normalize env (#2387)
* initial commit

* undo black

* add code

* add test cases and refactor

* add docs

* black

* documentation update

* break feature apart

* quick fix

* quick fix

* quick fix

* update documentation

* update documentation

* Update wrapper naming

* fix ci
2021-09-09 15:57:10 -04:00
Mohammad Amin Haghpanah
89c8bfb3d6 Add gym-mtsim (#2403) 2021-09-07 17:26:29 -04:00
Ariel Kwiatkowski
427cc39182 Fix the natural handling in Blackjack (#2398)
* Added support for fully S&B-compliant version of blackjack

* Added registration of Blackjack-v1, fully compliant with S&B

* black

* black

* Fix for an edge case where both self.sab and self.natural are true in blackjack. Shouldn't happen, but just in case.

* black

* Removed blackjack-v0 registration

* Add explicit "natural" kwarg to Blackjack-v1

* Bump Blackjack version in a test
2021-09-07 14:53:59 -04:00
Costa Huang
a4c3f15e9b fix bad test cases (#2401) 2021-09-06 17:24:55 -04:00
Alfred W. Jacob
ea8a21da3a Add version history for taxi (#2395)
* v3: Map Correction + Cleaner Domain Description
* v2: Disallow Taxi start location = goal location, Update Taxi observations in the rollout, Update Taxi reward threshold.
* v1: Remove (3,2) from locs, add passidx<4 check
* v0: Initial versions release
2021-09-05 22:14:44 -04:00
Costa Huang
9155d477bf RecordVideo hot fix (#2391) 2021-09-03 20:26:41 -04:00
Sebastian Wallkötter
cc5c4db731 bugfix Box.contains (#2388)
As per @rohanb2018 's comment.
2021-09-03 12:28:58 -04:00
Dimitrios Koutras
27f42ef9ab Add MarsExplorer (https://github.com/dimikout3/MarsExplorer), a third party environment (#2389) 2021-09-03 12:28:36 -04:00
Xuehai Pan
bb8e8063e9 Fix seed method for spaces.Tuple and spaces.Dict (#2365)
* Fix seed method for Tuple and Dict

* Improve stochasticity

* Update test cases for seed method

* Update test cases for seed method

Update test cases for seed method

Update test cases for seed method
2021-09-02 10:15:34 -04:00
Rohan138
c00c1babb9 Remove unused toytext environments (#2384)
* Moved Unused ToyText Environments

* Fixed error message

* removed KellyCoinFlip test

removed KellyCoinFlip tests

removed KellyCoinFlip tests

* black

* Modified docs
2021-09-01 23:22:01 -04:00
J K Terry
e5c7f1e3a7 v0.20.0 2021-09-01 14:33:43 -04:00
Rohan138
a7b6462136 Updated registration.py (#2375)
* Updated registration.py

* Blacken
2021-09-01 14:27:01 -04:00
J K Terry
6e424580cd Update bug.md 2021-09-01 14:19:00 -04:00
Paweł Gajewski
ee0a568004 docstring fix for compute_reward (#2380) 2021-09-01 14:12:36 -04:00
Sebastian Wallkötter
7573c57e1a box.contains check dtype and promote non-ndarrays (#2374)
* box.contains check dtype and promote non-ndarrays

Closes: https://github.com/openai/gym/issues/2357 and #2298

Instead of only casting list to ndarray, cast any class to ndarray (if possible) and emit a warning when casting. Also, check if the dtype of the input matches the dtype of the space.

* use import warnings

* blackify

* changs from code review

* fix wrapped space

Co-authored-by: Tristan Deleu <tristandeleu@users.noreply.github.com>

* fix box bondaries

Co-authored-by: Tristan Deleu <tristandeleu@users.noreply.github.com>

* TEST: add regression test.

* STY: black

Co-authored-by: Tristan Deleu <tristandeleu@users.noreply.github.com>
2021-09-01 12:14:22 -04:00
jfpettit
0b07221d84 change FrameStack wrapper to inherit from ObservationWrapper (#2378) 2021-09-01 12:09:43 -04:00
jfpettit
cf0cf17548 add __setitem__ method to Dict action space (#2377) 2021-09-01 12:09:20 -04:00
Costa Huang
a004558445 add episodic trigger (#2376) 2021-08-31 16:59:21 -04:00
J K Terry
150404104a Move Algorithmic Environments to Third Party Repo (#2344)
* try removing algorithmic environments

* fix tests

* algorithmic environments

* Moved algorithmic environments (#2363)

* Moved algorithmic environments

Moved algorithmic environments

Moved algorithmic environments

* blacken

* remove bad link

Co-authored-by: Rohan138 <66227218+Rohan138@users.noreply.github.com>
2021-08-27 09:48:24 -04:00
J K Terry
2bd436bf53 black 2021-08-26 15:38:23 -04:00
Ariel Kwiatkowski
bbb3072f38 Update acrobot docstrings (#2362)
Removed time from the signature of derivs in the documentation. Also fixed a typo and removed an example that's no longer valid
2021-08-26 15:37:56 -04:00
J K Terry
5af9104e09 fix black 2021-08-26 15:17:57 -04:00
TuckerBMorgan
cce192762c Changes to acrbot making more readable (#2130)
Co-authored-by: marsmute <marsmute@protonmail.com>
2021-08-26 15:17:36 -04:00
Ariel Kwiatkowski
4e38147f15 Taxi-v3 docs fix (#2360)
* Changed the docstring of Taxi env

* Changed the docs of Taxi env
2021-08-26 15:09:54 -04:00
Xuehai Pan
347a30aff9 Autoclose manually maintained video recorders (#2318)
* Autoclose manually maintained video recorders

* Update test case for VideoRecorder

* Update test case for VideoRecorder

* Update test case for VideoRecorder
2021-08-26 11:48:18 -04:00
J K Terry
bd7bb2b4af fix black 2021-08-26 11:47:05 -04:00
Alfred W. Jacob
81489aba95 Fix Roulette Documentation (#2356) 2021-08-26 11:46:28 -04:00
J K Terry
edc233288e Update environments.md 2021-08-25 18:02:55 -04:00
Alfred W. Jacob
1d41d4b364 Add Toy Text Environment Documentation (#2353)
* Add Algorithmic Environment documentation

I have added the documentation for algorithmic environments present on OpenAI gym.

Please note Reversed_Addition and Reversed_Addition3 have a single file and can be varied by giving rows parameter values 2,3 respectively.

The following work is still pending:

*Create a new table format to accommodate hyperlinks for value ranges that use parameters defined in the class
*Add documentation for Manual Control section
*Compute Average Reward

* Correct import statements in table

* Add Toy Text Environments

* New table struct for algorithm envs

* New table struct for toy text envs

* Remove algorithmic env

* Update taxi.md

Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-08-25 15:55:55 -04:00
Costa Huang
06debd07da Fix a RecordVideo bug (#2354)
* fix a RecordVideo bug

* add test cases
2021-08-24 17:34:43 -04:00
Costa Huang
60526169c6 Add RecordVideo docs (#2332)
* add `RecordVideo` docs

* add deprecation notice
2021-08-23 10:28:30 -04:00
Alfred W. Jacob
ff0144015e Generalize explanation in roulette (#2350)
Replaced the default value(37) with s for better understandability.
2021-08-22 16:34:47 -04:00
Ariel Kwiatkowski
f30e6d08e5 Revert "Redo the car racing dtype change - set to np.float32, and updated observation_space to reflect it" (#2346)
This reverts commit 6cf577ff51f78639e9f4b5ae766217f71f2c7bc8.
2021-08-21 18:58:01 -04:00