-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
1,844 additions
and
482 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,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 |
---|---|---|
|
@@ -31,7 +31,25 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#@title Installs and Imports\n", | ||
"from IPython.display import clear_output\n", | ||
"\n", | ||
"try:\n", | ||
" import qdax\n", | ||
"except:\n", | ||
" print(\"QDax not found. Installing...\")\n", | ||
" !pip install qdax[cuda12]\n", | ||
" import qdax\n", | ||
"\n", | ||
"clear_output()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"\n", | ||
"!pip install ipympl |tail -n 1\n", | ||
"# %matplotlib widget\n", | ||
"# from google.colab import output\n", | ||
|
@@ -46,37 +64,6 @@ | |
"import jax\n", | ||
"import jax.numpy as jnp\n", | ||
"\n", | ||
"try:\n", | ||
" import brax\n", | ||
"except:\n", | ||
" !pip install git+https://github.com/google/[email protected] |tail -n 1\n", | ||
" import brax\n", | ||
"\n", | ||
"try:\n", | ||
" import flax\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/google/[email protected] |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] |tail -n 1\n", | ||
" import chex\n", | ||
"\n", | ||
"try:\n", | ||
" import jumanji\n", | ||
"except:\n", | ||
" !pip install \"jumanji==0.3.1\"\n", | ||
" import jumanji\n", | ||
"\n", | ||
"try:\n", | ||
" import qdax\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/adaptive-intelligent-robotics/QDax@main |tail -n 1\n", | ||
" import qdax\n", | ||
"\n", | ||
"\n", | ||
"from qdax.core.aurora import AURORA\n", | ||
"from qdax.core.containers.unstructured_repertoire import UnstructuredRepertoire\n", | ||
"from qdax import environments\n", | ||
|
@@ -93,7 +80,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", | ||
|
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 |
---|---|---|
|
@@ -23,6 +23,24 @@ | |
"- how to visualise the optimization process" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from IPython.display import clear_output\n", | ||
"\n", | ||
"try:\n", | ||
" import qdax\n", | ||
"except:\n", | ||
" print(\"QDax not found. Installing...\")\n", | ||
" !pip install qdax[cuda12]\n", | ||
" import qdax\n", | ||
"\n", | ||
"clear_output()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
|
@@ -38,36 +56,6 @@ | |
"import jax\n", | ||
"import jax.numpy as jnp\n", | ||
"\n", | ||
"try:\n", | ||
" import brax\n", | ||
"except:\n", | ||
" !pip install git+https://github.com/google/[email protected] |tail -n 1\n", | ||
" import brax\n", | ||
"\n", | ||
"try:\n", | ||
" import flax\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/google/[email protected] |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] |tail -n 1\n", | ||
" import chex\n", | ||
"\n", | ||
"try:\n", | ||
" import jumanji\n", | ||
"except:\n", | ||
" !pip install \"jumanji==0.3.1\"\n", | ||
" import jumanji\n", | ||
"\n", | ||
"try:\n", | ||
" import qdax\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/adaptive-intelligent-robotics/QDax@main |tail -n 1\n", | ||
" import qdax\n", | ||
"\n", | ||
"from qdax.core.map_elites import MAPElites\n", | ||
"from qdax.core.emitters.cma_opt_emitter import CMAOptimizingEmitter\n", | ||
"from qdax.core.emitters.cma_rnd_emitter import CMARndEmitter\n", | ||
|
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 |
---|---|---|
|
@@ -29,39 +29,27 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import jax\n", | ||
"import jax.numpy as jnp\n", | ||
"\n", | ||
"try:\n", | ||
" import brax\n", | ||
"except:\n", | ||
" !pip install git+https://github.com/google/[email protected] |tail -n 1\n", | ||
" import brax\n", | ||
"\n", | ||
"try:\n", | ||
" import flax\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/google/[email protected] |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] |tail -n 1\n", | ||
" import chex\n", | ||
"\n", | ||
"try:\n", | ||
" import jumanji\n", | ||
"except:\n", | ||
" !pip install \"jumanji==0.3.1\"\n", | ||
" import jumanji\n", | ||
"from IPython.display import clear_output\n", | ||
"\n", | ||
"try:\n", | ||
" import qdax\n", | ||
"except:\n", | ||
" !pip install --no-deps git+https://github.com/adaptive-intelligent-robotics/QDax@main |tail -n 1\n", | ||
" print(\"QDax not found. Installing...\")\n", | ||
" !pip install qdax[cuda12]\n", | ||
" import qdax\n", | ||
"\n", | ||
"clear_output()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import jax\n", | ||
"import jax.numpy as jnp\n", | ||
"\n", | ||
"from qdax.core.map_elites import MAPElites\n", | ||
"from qdax.core.emitters.cma_mega_emitter import CMAMEGAEmitter\n", | ||
"from qdax.core.containers.mapelites_repertoire import compute_cvt_centroids, MapElitesRepertoire\n", | ||
|
Oops, something went wrong.