-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(algo): add DCG-MAP-Elites whose most recent version is called DCRL-ME (#167) * fix: Fix pareto dominance definition to account for solutions which have the same fitness values along one axis (#174) * docs(contribution): clarify contribution process (#171) * feat: Upgrade Library Versions and Python Version (#187) --------- Co-authored-by: Maxence Faldor <[email protected]> Co-authored-by: Hannah Janmohamed <[email protected]> Co-authored-by: Felix Chalumeau <[email protected]>
- Loading branch information
1 parent
54fae67
commit 8c9d2ec
Showing
152 changed files
with
3,410 additions
and
997 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 |
---|---|---|
|
@@ -8,7 +8,7 @@ version: 2 | |
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.9" | ||
python: "3.10" | ||
apt_packages: | ||
- swig | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Descriptor-Conditioned Reinforcement Learning MAP-Elites (DCRL-ME) | ||
|
||
To create an instance of DCRL-ME, one need to use an instance of [MAP-Elites](map_elites.md) with the `DCRLMEEmitter`, detailed below. | ||
|
||
::: qdax.core.emitters.dcrl_me_emitter.DCRLMEEmitter |
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 |
---|---|---|
|
@@ -86,7 +86,7 @@ git clone [email protected]:adaptive-intelligent-robotics/QDax.git | |
|
||
2. Activate the environment and manually install the package qdax | ||
```zsh | ||
conda activate qdaxpy39 | ||
conda activate qdaxpy310 | ||
pip install -e . | ||
``` | ||
|
||
|
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 |
---|---|---|
|
@@ -49,19 +49,19 @@ | |
"try:\n", | ||
" import brax\n", | ||
"except:\n", | ||
" !pip install git+https://github.com/google/brax.git@v0.9.2 |tail -n 1\n", | ||
" !pip install git+https://github.com/google/brax.git@v0.10.4 |tail -n 1\n", | ||
" import brax\n", | ||
"\n", | ||
"try:\n", | ||
" import flax\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/google/flax.git@v0.7.4 |tail -n 1\n", | ||
" !pip install --no-deps git+https://github.com/google/flax.git@v0.8.5 |tail -n 1\n", | ||
" import flax\n", | ||
"\n", | ||
"try:\n", | ||
" import chex\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/deepmind/[email protected].83 |tail -n 1\n", | ||
" !pip install --no-deps git+https://github.com/deepmind/[email protected].86 |tail -n 1\n", | ||
" import chex\n", | ||
"\n", | ||
"try:\n", | ||
|
@@ -93,7 +93,7 @@ | |
"from qdax.core.emitters.mutation_operators import isoline_variation\n", | ||
"from qdax.core.emitters.standard_emitters import MixingEmitter\n", | ||
"\n", | ||
"from qdax.types import Observation\n", | ||
"from qdax.custom_types import Observation\n", | ||
"from qdax.utils import train_seq2seq\n", | ||
"\n", | ||
"\n", | ||
|
@@ -512,11 +512,8 @@ | |
} | ||
], | ||
"metadata": { | ||
"interpreter": { | ||
"hash": "9ae46cf6a59eb5e192bc4f27fbb5c33d8a30eb9acb43edbb510eeaf7c819ab64" | ||
}, | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"display_name": "venv", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
|
@@ -530,7 +527,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.8.13" | ||
"version": "3.10.12" | ||
} | ||
}, | ||
"nbformat": 4, | ||
|
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 |
---|---|---|
|
@@ -2,15 +2,15 @@ | |
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "5c4ab97a", | ||
"id": "0", | ||
"metadata": {}, | ||
"source": [ | ||
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/adaptive-intelligent-robotics/QDax/blob/main/examples/cmaes.ipynb)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "222bbe00", | ||
"id": "1", | ||
"metadata": {}, | ||
"source": [ | ||
"# Optimizing with CMA-ES in Jax\n", | ||
|
@@ -26,7 +26,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "d731f067", | ||
"id": "2", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
|
@@ -36,19 +36,19 @@ | |
"try:\n", | ||
" import brax\n", | ||
"except:\n", | ||
" !pip install git+https://github.com/google/brax.git@v0.9.2 |tail -n 1\n", | ||
" !pip install git+https://github.com/google/brax.git@v0.10.4 |tail -n 1\n", | ||
" import brax\n", | ||
"\n", | ||
"try:\n", | ||
" import flax\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/google/flax.git@v0.7.4 |tail -n 1\n", | ||
" !pip install --no-deps git+https://github.com/google/flax.git@v0.8.5 |tail -n 1\n", | ||
" import flax\n", | ||
"\n", | ||
"try:\n", | ||
" import chex\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/deepmind/[email protected].83 |tail -n 1\n", | ||
" !pip install --no-deps git+https://github.com/deepmind/[email protected].86 |tail -n 1\n", | ||
" import chex\n", | ||
"\n", | ||
"try:\n", | ||
|
@@ -71,7 +71,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "7b6e910b", | ||
"id": "3", | ||
"metadata": {}, | ||
"source": [ | ||
"## Set the hyperparameters" | ||
|
@@ -80,7 +80,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "404fb0dc", | ||
"id": "4", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
|
@@ -98,7 +98,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "ccc7cbeb", | ||
"id": "5", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%% md\n" | ||
|
@@ -111,7 +111,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "436dccbb", | ||
"id": "6", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
|
@@ -133,7 +133,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "62bdd2a4", | ||
"id": "7", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%% md\n" | ||
|
@@ -146,7 +146,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "4cf03f55", | ||
"id": "8", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%%\n" | ||
|
@@ -167,7 +167,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "f1f69f50", | ||
"id": "9", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%% md\n" | ||
|
@@ -180,7 +180,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "1a95b74d", | ||
"id": "10", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%%\n" | ||
|
@@ -194,7 +194,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "ac2d5c0d", | ||
"id": "11", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%% md\n" | ||
|
@@ -207,7 +207,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "363198ca", | ||
"id": "12", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%%\n" | ||
|
@@ -245,7 +245,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "0e5820b8", | ||
"id": "13", | ||
"metadata": {}, | ||
"source": [ | ||
"## Check final fitnesses and distribution mean" | ||
|
@@ -254,7 +254,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "1e4a2c7b", | ||
"id": "14", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
|
@@ -272,7 +272,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "f3bd2b0f", | ||
"id": "15", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%% md\n" | ||
|
@@ -285,7 +285,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "ad85551c", | ||
"id": "16", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%%\n" | ||
|
@@ -333,7 +333,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.8.13" | ||
"version": "3.10.12" | ||
}, | ||
"vscode": { | ||
"interpreter": { | ||
|
Oops, something went wrong.