-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from automl/gymnasium_migration
Gymnasium migration Version Update
- Loading branch information
Showing
300 changed files
with
3,278 additions
and
155,922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: docs | ||
|
||
on: | ||
# Manual trigger option in github | ||
# This won't push to github pages where docs are hosted due | ||
# to the gaurded if statement in those steps | ||
workflow_dispatch: | ||
|
||
# Trigger on push to these branches | ||
push: | ||
branches: | ||
- main | ||
- gymnasium_migration | ||
|
||
# Trigger on a open/push to a PR targeting one of these branches | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
name: DACBench | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
id: install | ||
run: | | ||
pip install ".[dev,all,docs]" | ||
- name: Make docs | ||
run: | | ||
make clean | ||
make doc | ||
- name: Pull latest gh-pages | ||
if: (contains(github.ref, 'gymnasium_migration') || contains(github.ref, 'main')) && github.event_name == 'push' | ||
run: | | ||
cd .. | ||
git clone https://github.com/${{ github.repository }}.git --branch gh-pages --single-branch gh-pages | ||
- name: Copy new docs into gh-pages | ||
if: (contains(github.ref, 'gymnasium_migration') || contains(github.ref, 'main')) && github.event_name == 'push' | ||
run: | | ||
branch_name=${GITHUB_REF##*/} | ||
cd ../gh-pages | ||
rm -rf $branch_name | ||
cp -r ../${{ env.name }}/docs/build/html $branch_name | ||
- name: Push to gh-pages | ||
if: (contains(github.ref, 'gymnasium_migration') || contains(github.ref, 'main')) && github.event_name == 'push' | ||
run: | | ||
last_commit=$(git log --pretty=format:"%an: %s") | ||
cd ../gh-pages | ||
branch_name=${GITHUB_REF##*/} | ||
git add $branch_name/ | ||
git config --global user.name 'Github Actions' | ||
git config --global user.email '[email protected]' | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | ||
git commit -am "$last_commit" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: pre-commit | ||
|
||
on: | ||
# Manually triggerable in github | ||
workflow_dispatch: | ||
|
||
# When a push occurs on either of these branches | ||
push: | ||
branches-ignore: | ||
- '**' | ||
# branches: | ||
# - main | ||
# - development | ||
|
||
# When a push occurs on a PR that targets these branches | ||
pull_request: | ||
branches-ignore: | ||
- '**' | ||
# branches: | ||
# - main | ||
# - development | ||
|
||
jobs: | ||
run-all-files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.10 | ||
|
||
- name: Install pre-commit | ||
run: | | ||
pip install pre-commit | ||
pre-commit install | ||
- name: Run pre-commit | ||
run: | | ||
pre-commit run --all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 0.2.0 | ||
|
||
### Interface Update | ||
The main change in this version is going from OpenAI's gym to the newer gymnasium version. The outward change is slight, but this interface is now **incompatible with version 0.1.0**. | ||
To adapt to this version, you'll mainly have to replace instances of 'done' for termination with two variables: 'terminated' indication algorithm termination and 'truncated' indicating a timeout. | ||
Combined they're equal to the old 'done'. | ||
Additonally, the default version of the environments is now available in the gym registry. | ||
|
||
### Multi-Agent / Round Robin Control Option | ||
We added more options for controlling several hyperparameters at once. Using the PettingZoo API, users can now select which hyperparameters to control and use a typical Multi-Agent RL interface to do it. | ||
This should provide more freedom in how to solve the problem of scaling up to multiple hyperparameters. | ||
|
||
### Package Versions | ||
We updated all our dependencies for this release. Please note that this will likely influence benchmark behaviour, so **do not** directly compare performance of version 0.2.0 with 0.1.0! | ||
|
||
### Benchmark Changes | ||
The OneLL benchmark is not the Theory benchmark with a similar goal and setup, but a different base problem. | ||
For versioning reasons, we removed ModEA, the same problem should be covered by ModCMA. | ||
We also add a toy benchmark for higher dimensional spaces, the Geometric Benchmark. | ||
|
||
### Switches Docs to GitHub.io | ||
The documentation is now hosted on GitHub.io instead of Read the Docs for versioning reasons. The old version should still be accessible, however. | ||
|
||
|
||
# 0.1.0 | ||
### Added Benchmarks | ||
New benchmarks include the ModCMA IOHExperimenter version of ModEA, the OneLL EA benchmark and a toy version of controlling SGD. | ||
|
||
### Singularity Containers | ||
For added reproducibility, we provide Singularity recipes for each benchmark. This way they can be run in containers. | ||
|
||
## ConfigSpace Integration | ||
Search Spaces can now be defined via ConfigSpace and are then automatically converted to gym spaces. | ||
This should make it easier to recover whcih actions correspond to which hyperparameters. | ||
|
||
# 0.0.1 | ||
Initial Version |
Oops, something went wrong.