Skip to content
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

Version 1.0.0 #102

Merged
merged 717 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
717 commits
Select commit Hold shift + click to select a range
1a596e7
Fix mypy
Jul 6, 2022
b40627d
Fix mypy
Jul 6, 2022
b581cb1
black, isort and flake8
sebidoe Jul 6, 2022
db3f8cd
Version 0.2.0 (#63)
benjamc Jul 12, 2022
77fdf59
Update changelog.md
Jul 12, 2022
4a1c83e
added rna files
amsks Dec 6, 2022
0e93236
RNA design environmentclear
amsks Dec 20, 2022
9a495c7
started editing rna_env
amsks Dec 20, 2022
ac2d61a
mypy the main files
amsks Feb 16, 2023
97c7ae8
removed carl_rna issues
amsks Feb 22, 2023
1755b2a
pre-commit issues fixed
amsks Feb 22, 2023
af2c052
Update to gymnasium (#82)
Arman717 Apr 19, 2023
884437b
Update changelog.md
benjamc Apr 19, 2023
2e9b416
formatting update
TheEimer Jun 9, 2023
0ea79bc
more merging
TheEimer Jul 20, 2023
d7fdbe0
added new brax envs
amsks Jul 14, 2023
222567e
Changed citation in README
amsks Jul 14, 2023
9ddc226
updated gitignore
amsks Jul 14, 2023
8ff30b0
added dmc updates
amsks Jul 14, 2023
22e749c
Update dependencies
benjamc Jul 17, 2023
c311939
New carl env
Jun 12, 2023
07de8ec
Format
Jun 12, 2023
d694ce6
Current
benjamc Jul 7, 2023
63622e7
Convert carracing (rendering broken)
benjamc Jul 10, 2023
98788ed
Update Brax Envs
benjamc Jul 12, 2023
c842f79
Dmc new format
TheEimer Jul 11, 2023
baa5b34
Mario changes *untested bc not mac compatible*
TheEimer Jul 11, 2023
9c348cc
Add Brax prefix to class names
benjamc Jul 12, 2023
74807df
removed context mask from dmc
TheEimer Jul 13, 2023
b8cf568
import updates for mario + rna
TheEimer Jul 13, 2023
fe76e58
remove mario for now
TheEimer Jul 13, 2023
ed0cf69
Fix brax context space
benjamc Jul 13, 2023
ada08c5
Prettify spec checking
benjamc Jul 13, 2023
414a6d5
Make format
benjamc Jul 13, 2023
b311d7e
specify mario install issues
TheEimer Jul 13, 2023
c97b321
Fix tests
benjamc Jul 13, 2023
da6dc5d
Update setup.py
Jul 6, 2022
9973f6b
mario everything except from env done
amsks Jul 6, 2022
4e75b26
black, isort and flake8
sebidoe Jul 6, 2022
3c205b1
RNA design environmentclear
amsks Dec 20, 2022
f8018f1
merge with dev
TheEimer Jul 17, 2023
d984f0a
test passing after merge
TheEimer Jul 20, 2023
74664e0
Update setup.py
Jul 6, 2022
d36966b
Update gym version
Jul 6, 2022
27205da
Remove RNA
Jul 6, 2022
2627738
Fix mypy
Jul 6, 2022
746dce0
Fix mypy brax
Jul 6, 2022
57c92a3
Fix mypy
Jul 6, 2022
b03316b
Fix mypy
Jul 6, 2022
83b486d
Fix mypy mario
Jul 6, 2022
ad84def
mario everything except from env done
amsks Jul 6, 2022
c810d62
Fix mypy mario
Jul 6, 2022
f3d5509
mario_env done
amsks Jul 6, 2022
1b70d94
mypy corrected for everything except carl_rna
amsks Jul 6, 2022
42fa7e3
Change type of contexts to Contexts
Jul 6, 2022
d826917
black, isort and flake8
sebidoe Jul 6, 2022
6be9ee2
Fix pre-commit
Jul 7, 2022
8393aa2
Fix dist check
Jul 8, 2022
d8ba4a6
Remove setup packages for experiments
Jul 8, 2022
d76ea10
Remove requirements for rna
Jul 8, 2022
8d61252
Update requirements
Jul 8, 2022
b3a78f4
Add requirement
Jul 12, 2022
f4d5677
Remove requirement
Jul 12, 2022
3c6bcf7
Add sphinx theme to dev dependencies
TheEimer Feb 15, 2023
4f8dc79
Fix docs installation
TheEimer Feb 15, 2023
f60a46e
Fix file structure for doc build attempt
TheEimer Feb 16, 2023
791c108
makefile resolve
TheEimer Feb 17, 2023
f6a063f
move docs from smac to automl theme
TheEimer Feb 17, 2023
217f87c
add docs make all for global makefile
TheEimer Feb 17, 2023
e97c204
removed duplicated api file
TheEimer Feb 17, 2023
81b22a6
Update dist names
Jul 12, 2022
f072206
Fix pre-commit
Jul 12, 2022
4dda189
Update changelog.md
Jul 12, 2022
063d2e5
Remove entry points
Jul 12, 2022
5133d65
Fix gym version
benjamc Jul 21, 2022
3a8819f
Fix gym version
benjamc Jul 21, 2022
1d2773e
Add finger dmc (#67)
benjamc Sep 13, 2022
e21c69b
Fix format, fix tests (#73)
benjamc Nov 3, 2022
342e3d3
added rna files
amsks Dec 6, 2022
46818d3
updated the download eterna file
amsks Dec 12, 2022
501ad08
RNA design environmentclear
amsks Dec 20, 2022
f0c808d
mypy the main files
amsks Feb 16, 2023
75b284a
fixed docstrings
amsks Feb 16, 2023
23f1bee
Add files via upload
benjamc Feb 22, 2023
b13cda8
Update figures
Feb 22, 2023
df3e1de
removed carl_rna issues
amsks Feb 22, 2023
584e64b
pre-commit issues fixed
amsks Feb 22, 2023
5f3ce89
Fix ranges for brax package
Apr 4, 2023
844a57d
Update to gymnasium (#82)
Arman717 Apr 19, 2023
398e8c4
Add changelog.md
Jul 6, 2022
9e73524
Update setup.py
Jul 6, 2022
3e92ec0
Update gym version
Jul 6, 2022
2e9bf0d
Remove RNA
Jul 6, 2022
f48566e
Fix return type
Jul 6, 2022
9b469f6
Annotate inits
Jul 6, 2022
8029925
Annotate args
Jul 6, 2022
1ff5ebf
Fix mypy brax
Jul 6, 2022
cd6db2f
Fix mypy
Jul 6, 2022
af51c50
Fix mypy
Jul 6, 2022
7761d99
Fix mypy mario
Jul 6, 2022
ed7222a
mario everything except from env done
amsks Jul 6, 2022
c79b4b7
Fix mypy mario
Jul 6, 2022
4d962d9
mario_env done
amsks Jul 6, 2022
4f01b0a
mypy corrected for everything except carl_rna
amsks Jul 6, 2022
c9eda26
black, isort and flake8
sebidoe Jul 6, 2022
5cae041
Update changelog.md
Jul 7, 2022
eb88bef
Update changelog.md
Jul 7, 2022
dafa103
Update changelog.md
Jul 7, 2022
ea3a826
Fix dist check
Jul 8, 2022
c6c5a72
Update requirements
Jul 8, 2022
f31ba52
Fix tests.yaml
Jul 8, 2022
499cf96
Update tests.yaml
Jul 12, 2022
d811978
makefile resolve
TheEimer Feb 17, 2023
c3cc364
remove wayward merge string
TheEimer Jun 9, 2023
80a1071
Version 0.2.0 (#63)
benjamc Jul 12, 2022
854a5a2
Update dist names
Jul 12, 2022
fc2329b
Fix pre-commit
Jul 12, 2022
61fa410
Update changelog.md
Jul 12, 2022
5a3dc3d
added sh and util files for data
amsks Dec 6, 2022
a4c6290
added rna files
amsks Dec 6, 2022
30b58cd
updated the download eterna file
amsks Dec 12, 2022
1c68931
udpated parse_dor_brackets
amsks Dec 12, 2022
c30d6ec
RNA design environmentclear
amsks Dec 20, 2022
713c4c8
started editing rna_env
amsks Dec 20, 2022
7aa30c8
mypy the main files
amsks Feb 16, 2023
12a960c
Update changelog.md
benjamc Feb 17, 2023
210c81e
doc update
TheEimer Feb 17, 2023
79957d2
Add files via upload
benjamc Feb 22, 2023
1211d9f
Update figures
Feb 22, 2023
2bf8644
removed carl_rna issues
amsks Feb 22, 2023
66f685a
pre-commit issues fixed
amsks Feb 22, 2023
b40454c
Update to gymnasium (#82)
Arman717 Apr 19, 2023
86a2760
Update changelog.md
benjamc Apr 19, 2023
b12a5dc
formatting update
TheEimer Jun 9, 2023
670da1c
fixing dist + import
TheEimer Jun 9, 2023
e2ef9f7
fix package name
TheEimer Jun 9, 2023
3b7bd4e
precommit
TheEimer Jun 9, 2023
d3fe8a8
added dmc updates
amsks Jul 14, 2023
d368d96
Update dependencies
benjamc Jul 17, 2023
7ddc152
small fixes, added defaults to sampled contexts
becktepe Aug 3, 2023
6bf4585
removed debug statement
becktepe Aug 3, 2023
8c15e89
Remove RNA
Jul 6, 2022
54edc83
Fix mypy brax
Jul 6, 2022
e7d7ecc
Fix mypy
Jul 6, 2022
f4c459a
Fix mypy mario
Jul 6, 2022
e110d13
mario everything except from env done
amsks Jul 6, 2022
c46d8c9
Fix mypy mario
Jul 6, 2022
2085421
mario_env done
amsks Jul 6, 2022
83c5739
mypy corrected for everything except carl_rna
amsks Jul 6, 2022
a58ee4a
black, isort and flake8
sebidoe Jul 6, 2022
218ff93
Fix pre-commit
Jul 7, 2022
259a692
Format isort
Jul 8, 2022
de4940c
Add requirement
Jul 12, 2022
381f909
Remove requirement
Jul 12, 2022
ceaf27b
Add sphinx theme to dev dependencies
TheEimer Feb 15, 2023
a2de58b
Fix docs installation
TheEimer Feb 15, 2023
a1d7387
Fix file structure for doc build attempt
TheEimer Feb 16, 2023
e1de2a9
makefile resolve
TheEimer Feb 17, 2023
43d676e
move docs from smac to automl theme
TheEimer Feb 17, 2023
eda334c
add docs make all for global makefile
TheEimer Feb 17, 2023
2f08c38
removed duplicated api file
TheEimer Feb 17, 2023
d054646
Update dist names
Jul 12, 2022
0bb4c27
Fix pre-commit
Jul 12, 2022
f51e534
Fix format, fix tests (#73)
benjamc Nov 3, 2022
aa6addd
added rna files
amsks Dec 6, 2022
02bb64f
updated the download eterna file
amsks Dec 12, 2022
d4aa531
updated the download eterna file
amsks Dec 12, 2022
5956751
udpated parse_dor_brackets
amsks Dec 12, 2022
adc6d66
RNA design environmentclear
amsks Dec 20, 2022
f22f1b4
started editing rna_env
amsks Dec 20, 2022
8d0f9d5
mypy the main files
amsks Feb 16, 2023
3f8a03b
fixed docstrings
amsks Feb 16, 2023
e47b488
Add files via upload
benjamc Feb 22, 2023
bbf9c08
Update figures
Feb 22, 2023
9cc6793
removed carl_rna issues
amsks Feb 22, 2023
9fafdc1
pre-commit issues fixed
amsks Feb 22, 2023
ff5837c
Update to gymnasium (#82)
Arman717 Apr 19, 2023
1f3d9d0
Add changelog.md
Jul 6, 2022
ab82ed6
Update setup.py
Jul 6, 2022
5a9f3bb
Remove RNA
Jul 6, 2022
fc7fb66
Fix return type
Jul 6, 2022
9b40fdf
Annotate inits
Jul 6, 2022
7245ee4
Annotate args
Jul 6, 2022
760320a
Fix mypy brax
Jul 6, 2022
42fa115
Fix mypy
Jul 6, 2022
3d46108
Fix mypy mario
Jul 6, 2022
83d5ba2
mario everything except from env done
amsks Jul 6, 2022
9120043
Fix mypy mario
Jul 6, 2022
bcb5760
mario_env done
amsks Jul 6, 2022
637fc81
mypy corrected for everything except carl_rna
amsks Jul 6, 2022
2d6928b
black, isort and flake8
sebidoe Jul 6, 2022
6a04106
Update changelog.md
Jul 7, 2022
761c906
Update changelog.md
Jul 7, 2022
73793fd
Update changelog.md
Jul 7, 2022
623d96f
Fix dist check
Jul 8, 2022
fd94638
Update requirements
Jul 8, 2022
2b8a9af
Fix tests.yaml
Jul 8, 2022
da87e5d
Update tests.yaml
Jul 12, 2022
111fd42
makefile resolve
TheEimer Feb 17, 2023
689bd58
remove wayward merge string
TheEimer Jun 9, 2023
e145935
Version 0.2.0 (#63)
benjamc Jul 12, 2022
6cf422c
Update dist names
Jul 12, 2022
7bcc725
Fix pre-commit
Jul 12, 2022
778eb1e
Update changelog.md
Jul 12, 2022
24fb09d
added sh and util files for data
amsks Dec 6, 2022
f29d970
added rna files
amsks Dec 6, 2022
64f8bfe
updated the download eterna file
amsks Dec 12, 2022
d921c30
udpated parse_dor_brackets
amsks Dec 12, 2022
97c98a2
RNA design environmentclear
amsks Dec 20, 2022
f8e93c8
started editing rna_env
amsks Dec 20, 2022
191220a
mypy the main files
amsks Feb 16, 2023
cd575ae
Update changelog.md
benjamc Feb 17, 2023
7155511
Add files via upload
benjamc Feb 22, 2023
debf4b6
Update figures
Feb 22, 2023
9542451
removed carl_rna issues
amsks Feb 22, 2023
3c3254d
pre-commit issues fixed
amsks Feb 22, 2023
4630bf8
Update to gymnasium (#82)
Arman717 Apr 19, 2023
4d625b2
Update changelog.md
benjamc Apr 19, 2023
b601600
formatting update
TheEimer Jun 9, 2023
dfeb161
Fix tests
TheEimer Jun 9, 2023
2b6d127
fixing dist + import
TheEimer Jun 9, 2023
2434163
fix package name
TheEimer Jun 9, 2023
38bd9ad
precommit
TheEimer Jun 9, 2023
04543d8
Fix gitmodules
benjamc Aug 8, 2023
310642c
Merge branch 'development' into feature/envrework
benjamc Aug 8, 2023
252494d
Those files sneaked in
benjamc Aug 8, 2023
b579db8
Revert test carl env
benjamc Aug 8, 2023
839f31a
pre-cpmmit
TheEimer Aug 8, 2023
aa4f7e2
dependency + import issues for test
TheEimer Aug 8, 2023
1342095
omegaconf dependency
TheEimer Aug 8, 2023
bdd5793
key error in test
TheEimer Aug 8, 2023
d09e41b
Fix test
benjamc Aug 8, 2023
43b7cff
Merge branch 'feature/envrework' of github.com:automl/CARL into featu…
benjamc Aug 8, 2023
c525c65
Merge pull request #89 from automl/feature/envrework
TheEimer Aug 8, 2023
ea34f2e
Update todos
benjamc Aug 9, 2023
f30d834
Merge branch 'development' into doc_update
TheEimer Aug 9, 2023
f1a11f9
Merge pull request #96 from automl/doc_update
TheEimer Aug 9, 2023
8b4a7e5
Update docstrings
benjamc Aug 9, 2023
5c249f3
Merge branch 'development' of github.com:automl/CARL into development
benjamc Aug 9, 2023
d9e3fba
version upgrade
TheEimer Aug 9, 2023
cd4ae7a
formatting
TheEimer Aug 9, 2023
b8678f0
Update changelog.md
benjamc Aug 9, 2023
e2c7f94
Ciao
benjamc Aug 9, 2023
0678ebd
Remove old sampling
benjamc Aug 9, 2023
3a84089
Add docstrings
benjamc Aug 9, 2023
76d83c9
Merge branch 'development' of github.com:automl/CARL into development
benjamc Aug 9, 2023
8731d06
Make format
benjamc Aug 9, 2023
56dacfe
Soften codecov
benjamc Aug 9, 2023
b8220c5
Soften codecove jetzt aber wirklich
benjamc Aug 9, 2023
1834558
Soften codepatch :)))
benjamc Aug 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ coverage:
# This encourages small PR's as they are easier to test.
patch:
default:
target: 90%
target: 10%
if_not_found: failure
if_ci_failed: error
if_ci_failed: failure

# We upload additional information on branching with pytest-cov `--cov-branch`
# This information can be used by codecov.com to increase analysis of code
Expand Down
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ extend-ignore =
E203
# No lambdas — too strict
E731
E722
F405
F403
12 changes: 9 additions & 3 deletions .github/workflows/dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ on:
- main
- development

# When a push occurs on a PR that targets these branches
# Trigger on open/push to a PR targeting one of these branches
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- development

jobs:
dist:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest

steps:
Expand All @@ -38,7 +44,7 @@ jobs:
- name: Twine check
run: |
pip install twine
last_dist=$(ls -t dist/ContextuaRL-*.tar.gz | head -n 1)
last_dist=$(ls -t dist/carl-*.tar.gz | head -n 1)
twine_output=`twine check "$last_dist"`
if [[ "$twine_output" != "Checking $last_dist: PASSED" ]]
then
Expand All @@ -49,7 +55,7 @@ jobs:

- name: Install dist
run: |
last_dist=$(ls -t dist/ContextuaRL-*.tar.gz | head -n 1)
last_dist=$(ls -t dist/carl-*.tar.gz | head -n 1)
pip install $last_dist

- name: PEP 561 Compliance
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
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

# Trigger on a open/push to a PR targeting one of these branches
pull_request:
branches:
- main

env:
name: CARL

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.9"

- name: Install dependencies
run: |
pip install ".[docs]"
- name: Make docs
run: |
make clean
make doc
- name: Pull latest gh_pages
if: (contains(github.ref, 'version_0.2.0') || 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, 'version_0.2.0') || 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, 'version_0.2.0') || 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 'not@mail.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "$last_commit"
git push
6 changes: 6 additions & 0 deletions .github/workflows/precommit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ on:

# When a push occurs on a PR that targets these branches
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- development

jobs:
run-all-files:
if : ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:

# When a push occurs on a PR that targets these branches
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- development
Expand All @@ -36,6 +41,7 @@ jobs:
ubuntu:

name: ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.kind }}
if: ${{ !github.event.pull_request.draft }}
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -98,12 +104,13 @@ jobs:
run: |
python -m pip install --upgrade pip
python setup.py sdist
last_dist=$(ls -t dist/ContextuaRL-*.tar.gz | head -n 1)
last_dist=$(ls -t dist/carl-*.tar.gz | head -n 1)
pip install $last_dist[dev,dm_control]

- name: Tests
timeout-minutes: 60
run: |
echo "Running all tests..."
if [[ ${{ matrix.kind }} == 'conda' ]]; then
PYTHON=$CONDA/envs/testenv/bin/python3
export PATH="$CONDA/envs/testenv/bin:$PATH"
Expand Down
18 changes: 14 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@ CARL.egg-info
carl.egg-info
.mypy_cache
.pytest_cache
.coverage
.coverage*
exp_sweep
multirun
outputs
experiments
testvenv
*.egg-info
runs
*.png
*.pdf
*.csv
*.pickle
*.ipynb_checkpoints
*optgap*
*smac3*
*.json
generated
*egg*
core
*.png
*.tex
build
target
11 changes: 4 additions & 7 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "src/envs/rna/learna"]
path = src/envs/rna/learna
url = https://github.com/automl/learna.git
[submodule "src/envs/mario/TOAD-GUI"]
path = src/envs/mario/TOAD-GUI
[submodule "carl/envs/mario/TOAD-GUI"]
path = carl/envs/mario/TOAD-GUI
url = https://github.com/Mawiszus/TOAD-GUI
[submodule "src/envs/mario/Mario-AI-Framework"]
path = src/envs/mario/Mario-AI-Framework
[submodule "carl/envs/mario/Mario-AI-Framework"]
path = carl/envs/mario/Mario-AI-Framework
url = https://github.com/frederikschubert/Mario-AI-Framework
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ repos:
always_run: false
additional_dependencies: ["toml"] # Needed to parse pyproject.toml

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.930
hooks:
- id: mypy
name: mypy carl
files: carl/.*

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PYTEST ?= python -m pytest
CTAGS ?= ctags
PIP ?= python -m pip
MAKE ?= make
BLACK ?= black
BLACK ?= python -m black
ISORT ?= isort
PYDOCSTYLE ?= pydocstyle
MYPY ?= mypy
Expand Down Expand Up @@ -88,7 +88,7 @@ build:
$(PYTHON) setup.py sdist

doc:
$(MAKE) -C ${DOCDIR} all
$(MAKE) -C ${DOCDIR} docs
@echo
@echo "View docs at:"
@echo ${INDEX_HTML}
Expand Down
43 changes: 31 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pip install .

This will only install the basic classic control environments, which should run on most operating systems. For the full set of environments, use the install options:
```bash
pip install -e .[box2d, brax, mario, dm_control]
pip install -e .[box2d,brax,dm_control,mario,rna]
```

These may not be compatible with Windows systems. Box2D environment may need to be installed via conda on MacOS systems:
Expand All @@ -50,13 +50,26 @@ conda install -c conda-forge gym-box2d
```

In general, we test on Linux systems, but aim to keep the benchmark compatible with MacOS as much as possible.
Mario at this point, however, will not run on any operation system besides Linux
RNA and Mario at this point, however, will not run on any operation system besides Linux.

To install the additional requirements for ToadGAN:
To install ToadGAN for the Mario environment:
```bash
javac carl/envs/mario/Mario-AI-Framework/**/*.java
git submodule update --init --recursive

# if this does not work, clone manually
git clone https://github.com/frederikschubert/Mario-AI-Framework carl/envs/mario/Mario-AI-Framework
git clone https://github.com/Mawiszus/TOAD-GUI carl/envs/mario/TOAD-GUI

# System requirements
sudo apt install libfreetype6-dev xvfb

# Compile java source files
cd carl/envs/mario/Mario-AI-Framework/src
javac *.java
```

If you want to use RNA, please take a look at the associated [ReadME](carl/envs/rna/readme.md).

## CARL's Contextual Extension
CARL contextually extends the environment by making the context visible and configurable.
During training we therefore can encounter different contexts and train for generalization.
Expand All @@ -68,16 +81,22 @@ Different instiations can be achieved by setting the context features to differe
## Cite Us
If you use CARL in your research, please cite our paper on the benchmark:
```bibtex
@inproceedings{BenEim2021a,
title = {CARL: A Benchmark for Contextual and Adaptive Reinforcement Learning},
author = {Carolin Benjamins and Theresa Eimer and Frederik Schubert and André Biedenkapp and Bodo Rosenhahn and Frank Hutter and Marius Lindauer},
booktitle = {NeurIPS 2021 Workshop on Ecological Theory of Reinforcement Learning},
year = {2021},
month = dec
@inproceedings { BenEim2023a,
author = {Carolin Benjamins and
Theresa Eimer and
Frederik Schubert and
Aditya Mohan and
Sebastian Döhler and
André Biedenkapp and
Bodo Rosenhahn and
Frank Hutter and
Marius Lindauer},
title = {Contextualize Me - The Case for Context in Reinforcement Learning},
journal = {Transactions on Machine Learning Research},
year = {2023},
}
```

You can find the code and experiments for this paper in the `neurips_ecorl_workshop_2021` branch.
```

## References
[OpenAI gym, Brockman et al., 2016. arXiv preprint arXiv:1606.01540](https://arxiv.org/pdf/1606.01540.pdf)
Expand Down
6 changes: 3 additions & 3 deletions carl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
__license__ = "Apache-2.0 License"
__version__ = "0.2.0"
__version__ = "1.0.0"
__author__ = "Carolin Benjamins, Theresa Eimer, Frederik Schubert, André Biedenkapp, Aditya Mohan, Sebastian Döhler"


import datetime

name = "CARL"
package_name = "ContextuaRL"
package_name = "carl"
author = __author__

author_email = "benjamins@tnt.uni-hannover.de"
description = "CARL- Contextually Adaptive Reinforcement Learning"
url = "https://www.automl.org/"
project_urls = {
"Documentation": "https://carl.readthedocs.io/en/latest/",
"Documentation": "https://automl.github.io/CARL",
"Source Code": "https://github.com/https://github.com/automl/CARL",
}
copyright = f"""
Expand Down
40 changes: 0 additions & 40 deletions carl/context/augmentation.py

This file was deleted.

Loading
Loading