Commit Graph

1276 Commits

Author SHA1 Message Date
Mathieu Poliquin
31be35ecd4 Added 'stable-retro' to third party env list (#2266) 2021-07-28 12:40:56 -04:00
Zain Patel
b064313d20 Fix CI: add tests to GitHub actions (#2262)
* Initial CI fixes
2021-07-27 23:32:32 -04:00
zlig
fe1e0837e6 Fixes video recorder ffmpeg on Centos7 and RHEL7 (#1893)
* Conditionally select different arguments for ffmpeg, and add meaningful error for third party application in charge of encoding

* Consistency with other logger() calls

Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-27 15:18:11 -04:00
Yunzhi Zhang
41e571d065 pass args to expickle (#2172) 2021-07-27 14:49:45 -04:00
Justin Terry
b60a40db6e @Indoril007 s ez pickle fix 2021-07-27 14:36:06 -04:00
Christian Clauss
29c96a9a83 GitHub Action to lint Python code (#2258)
* GitHub Action to lint Python code

* pip install -e .

* pip install -e .[all]
2021-07-27 14:16:00 -04:00
Justin Terry
0989f0d3d8 update contributing.md 2021-07-27 14:14:21 -04:00
Justin Terry
e5a093a1c5 add requirements.txt 2021-07-27 12:35:48 -04:00
Justin Terry
ee7811c26d peg atari-py version, add requirements.txt, bump numpy version 2021-07-27 12:35:35 -04:00
Christian Clauss
2ef26144a2 Fix typos discovered by codespell (#2256)
Typos
2021-07-27 01:20:29 -04:00
Iheb Haboubi
63171e352e Fix typo in docstring (#2080) 2021-07-26 16:11:20 -04:00
Won Seok Jung
1dbd97e8ed minor fix (#2113) 2021-07-26 16:09:48 -04:00
m-orsini
6b01f4fa9c Allow custom data type for multi distrete space. (#2148) 2021-07-26 16:07:58 -04:00
Justin Terry
562a8cc7ce fix qoute 2021-07-26 16:03:32 -04:00
Ikko Ashimine
065e6a5d74 Fix URL (#2244)
http -> https
2021-07-26 15:54:42 -04:00
Merve Noyan
98777c455c Fixed broken link (arcade learning environment) (#2222) 2021-07-26 15:53:24 -04:00
Nashir Janmohamed
c882703bc8 Fix broken link in docstring (#2154)
The link to the original implementation of mountain car on incompleteideas.net was broken. Replaced with the correct link.
2021-07-26 15:51:54 -04:00
ahmadF
48baefeaf5 Add description to countinous mountain car task (#2107) 2021-07-26 15:51:29 -04:00
Erfan Miahi
a766dd0a2c A third-party environment named RiverSwim (#2086)
RiverSwim which is a simple hard exploration environment has been added to the list of third-party environments.

Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:51:08 -04:00
Akash Patel
a8153126a0 add gym-ccc third-party environment package (#2087)
Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:50:45 -04:00
MouseAndKeyboard
985de1f017 Added gym-spoof to third party environments (#2092) 2021-07-26 15:50:21 -04:00
miluChen
9a9e68a888 close env after done (#2162)
* close env after done

* fix if

Co-authored-by: He Chen <hchen584@bloomberg.net>
Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:49:56 -04:00
Rajkumar Ramamurthy
cbcb6668ae Update documentation for new NLP environments (#2110)
Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:46:59 -04:00
Johnny
db80dbe4ad Add math_prog_synth_env to list of environments (#2252)
Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:45:01 -04:00
Yang Yu
e382c939bf Update environments.md (#2127)
Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:44:27 -04:00
Zhiqing Xiao
81aeb68906 remove constraints on package versions (#2135)
Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:43:08 -04:00
qdevpsi3
0de634b2ce Add qas-gym to environments.md (#2226)
Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:41:35 -04:00
Matteo Lucchi
b1217f7308 Add robo-gym to third party environment list (#2248)
Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:40:08 -04:00
Vasco CC
8f6eb1ebd0 BUG FIX: Bipedal Walker; Car Racing; Guessing Game; Hotter Colder - Showing Warning (#2126)
* Fixing Warning issue

Fixing an issue causing a Warning message to pop because of conversion from python standard float64 to np.float32

* car_racing.py Warning Fix

Fixed a bug generating a warning with conversion from standard `float 64` to `numpy float 32`.

* Fixing Warning issue 

Fixed a bug generating a warning with conversion from standard `float 64` to `numpy float 32`.

* Fixing Warning issue

Fixed a bug generating a warning with conversion from standard `float 64` to `numpy float 32`.

* bracket missing

* Bracket misplaced
2021-07-26 15:39:04 -04:00
Hojoung (Brian) Jang
81b2ddd106 Add gym-xiangqi to third party environment list (#2230)
* Add gym-xiangqi to env list

* Update description

Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:36:28 -04:00
Mohamad H. Danesh
7d72f9535f Update environments.md (#2251)
Add a new environment to the list.
2021-07-26 15:35:27 -04:00
pzhokhov
ee5ee3a4a5 fix build by disabling mujoco and moving to newer python patch versions (#2220)
* reverting to older version of 3.6 python to test if the build is failing because of that

* revert 3.7 to 3.7.3 for the build

* revert python 3.8 version to 3.8.1

* do not install mujoco on 3.8 and 3.9

* enable mujoco for 3.7

* .

* .

* .

* use regex to navigate python version dependent package installation

* .

* try only one python version at a time

* switch to possibly more popular python tag for 3.6

* disable mujoco
2021-05-17 16:19:33 -07:00
Daniel Ciborowski
a5a6ae6bc0 Update Pillow Python Library for CVE-2020-35653 & CVE-2021-27921 (#2189)
* Update setup.py

* Update setup.py

* Update setup.py
2021-04-06 08:18:55 -07:00
Zhiqing Xiao
151ba406eb Revise the unattainable reward_threshold to an attainable value (#2205)
**Issues:**   The current `reward_threhold` for `FrozenLake-v0` and `FrozenLake8x8-v0` is too high to be attained.

Commit: df515de07d   @joschu  

**Solution:**   Reduce the `reward_threhold` to make them attainable.

**Reference:**   Codes to calculate the theoretic optimal reward expectations:

```python
import gym
env = gym.make('FrozenLake-v0')
print(env.observation_space.n) # 16
print(env.action_space.n) # 4
print(env.spec.reward_threshold) # 0.78, should be smaller
print(env.spec.max_episode_steps) # 100

import numpy as np
v = np.zeros((101, 16), dtype=float)
q = np.zeros((101, 16, 4), dtype=float)
pi = np.zeros((101, 16), dtype=float)
for t in range(99, -1, -1): # backward
    for s in range(16):
        for a in range(4):
            for p, next_s, r, d in env.P[s][a]:
                q[t, s, a] += p * (r + (1. - float(d)) * v[t+1, next_s])
        v[t, s] = q[t, s].max()
        pi[t, s] = q[t, s].argmax()
print(v[0, 0]) # ~0.74 < 0.78
```

```python
import gym
env = gym.make('FrozenLake8x8-v0')
print(env.observation_space.n) # 64
print(env.action_space.n) # 4
print(env.spec.reward_threshold) # 0.99, should be smaller
print(env.spec.max_episode_steps) # 200

import numpy as np
v = np.zeros((201, 64), dtype=float)
q = np.zeros((201, 64, 4), dtype=float)
pi = np.zeros((201, 64), dtype=float)
for t in range(199, -1, -1): # backward
    for s in range(64):
        for a in range(4):
            for p, next_s, r, d in env.P[s][a]:
                q[t, s, a] += p * (r + (1. - float(d)) * v[t+1, next_s])
        v[t, s] = q[t, s].max()
        pi[t, s] = q[t, s].argmax()
print(v[0, 0]) # ~0.91 < 0.99
```
2021-03-31 11:02:11 -07:00
Jaekyung-Cho
c8a659369d pull request about issue #2062 (car_racing.py memory leaking issue ) (#2096)
* car_racing.py memory leaking issue #2062 solving

* additional memory leaking resolve
2021-02-16 11:31:40 -08:00
Hill Ma
8a721ace46 Fix video recording. (#2139) 2021-01-11 09:58:46 -08:00
Peter Zhokhov
2c50315aab 0.18.0 release, release notes 2020-12-18 15:40:47 -08:00
pzhokhov
1e5f770044 fix build - only install mujoco for python 3.6, 3.7, (#2133)
* reverting to older version of 3.6 python to test if the build is failing because of that

* revert 3.7 to 3.7.3 for the build

* revert python 3.8 version to 3.8.1

* do not install mujoco on 3.8 and 3.9

* enable mujoco for 3.7

* .

* .

* .

* use regex to navigate python version dependent package installation

* .
2020-12-18 15:31:58 -08:00
Justin Terry
bdf95c1adc Python 3.9 support (#2088)
* try changes in pr 1804

* fix classifiers

* typo
2020-12-17 11:55:52 -08:00
Justin Terry
c4d0af393e Miscellaneous Toy Text fixes (#2082)
* toytext cleanup

* flake8
2020-11-09 10:24:26 -08:00
Justin Terry
eec7d3354a Remove Python 3.5 support, travis and setup.py maintenance (#2084)
* remove python 3.5, update travis

* add travis

* add cmake during tests

* add swig

* disable python 3.8 removal?

* remove depricated failover

* add opencv and pillow minimum versions

* try removing pillow minimum version

* try older version of ubuntu

* reup ubuntu

* make pillow version suitable for pyglet version range

* remove extraneous run

* rerun stalled CI
2020-11-06 17:04:23 -08:00
Melvin Wang
eee9b28882 Flattened space/point dtype mismatch (#2070)
* add test showing mismatch in flattened space dtype and flattened point dtype

* fix mismatch in flattened space dtype and flattened point dtype

* fix typo

* enhance test to detect when flattened dtype is incorrect

* fix incorrect flattened dtype

* remove inaccurate comment

* change flatten to always use space.dtype

* added testing for unflattened dtypes

* fix unflatten dtypes

* swtich flatten_space to use space.dtype for hardcoded space dtypes

* fix failure in python 3.5
2020-11-06 12:06:29 -08:00
Xingdong Zuo
28c42b63c8 [Wrappers]: TimeAwareObservation (#1490)
* Create time_aware_observation.py

* Update __init__.py

* Create test_time_aware_observation.py

* Update time_aware_observation.py

* Update time_aware_observation.py

* Update time_aware_observation.py

Co-authored-by: pzhokhov <peterz@openai.com>
2020-11-05 13:44:37 -08:00
Adwait Naik
57968cacd0 updated Gridworld: A simple 2D grid environment (#2073) 2020-10-23 13:47:06 -07:00
Andreas Boltres
e6a758da3c Add gym-autokey to third party environment list (#2055)
This env is a bit more heavyweight due to the size and complexity of the underlying KeY prover, but I hope that you too can build/test it hand have some fun there 😄

Please notify me if there is anything wrong with the installation or the env itself.
2020-10-23 11:53:11 -07:00
Peter Zhokhov
38a1f630dc 0.17.3 release and notes 2020-09-29 16:49:27 -07:00
leocus
81508d348d Improved performance of simulation (#2006)
* Improved performance of rendering

* Improved performance

* remove commented out line

* black formatting

Co-authored-by: leocus <leocus4@gmail.com>
Co-authored-by: pzhokhov <peterz@openai.com>
2020-09-25 16:33:54 -07:00
Fredrik Norén
0424d59fe8 Add gym-derk to environments (#2044)
Co-authored-by: pzhokhov <peterz@openai.com>
2020-09-25 16:14:29 -07:00
Alberto Falossi
f9110b5bb4 Added gym-adserver (#2049) 2020-09-25 15:49:37 -07:00
lsylusiyao
27b6816ab0 Add support for tuple input on MultiBinary space (#2023)
* Add support for tuple input on MultiBinary space

* Change input of multibinary

* Remove check of length != 1; Add shape check
2020-09-25 15:43:15 -07:00