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

Add the algorithm DADS to QDax #21

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
47eb535
Merge remote-tracking branch 'upstream/main' into main
felixchalumeau May 31, 2022
d624913
add td3 with tests
felixchalumeau May 31, 2022
ed95173
clean functions names
felixchalumeau May 31, 2022
da4852b
add sac algorithm with a quick test
felixchalumeau May 31, 2022
0050563
add sac algorithm with a simple test
felixchalumeau Jun 1, 2022
02ae104
add diayn algorithm with a simple test
felixchalumeau Jun 1, 2022
bebd37d
wip: add dads algorithms and a simple test
felixchalumeau Jun 1, 2022
75b78dd
update dads and fix test
felixchalumeau Jun 1, 2022
330743a
fix: udpate notebook to fix issue with bd evaluation
felixchalumeau Jun 2, 2022
696ff88
quick minor fix in the notebook
felixchalumeau Jun 2, 2022
a83b9b9
reduce episode length and iterations in pgame notebook
felixchalumeau Jun 2, 2022
9f7d202
Merge branch 'hotfix-behavior-descriptor' into feat/add-dads
felixchalumeau Jun 3, 2022
d3acf9f
add example notebook and plotting util for skill discovery
felixchalumeau Jun 7, 2022
94333f1
Merge branch 'develop' into feat/add-sac
felixchalumeau Jun 8, 2022
b88f6f4
Merge branch 'develop' into feat/add-diayn
felixchalumeau Jun 8, 2022
c474edc
clean notebook + make select action more general and public
felixchalumeau Jun 8, 2022
3a49a16
Merge branch 'develop' into feat/add-sac
felixchalumeau Jun 9, 2022
66c4b58
minor notebook cleaning
felixchalumeau Jun 9, 2022
13a60aa
Merge branch 'feat/add-diayn' into feat/add-dads
felixchalumeau Jun 9, 2022
95e331f
add notebook and fix test
felixchalumeau Jun 9, 2022
e217204
Merge branch 'feat/add-sac' into feat/add-diayn
felixchalumeau Jun 10, 2022
5e87074
update notebook
felixchalumeau Jun 10, 2022
e38bd3d
Fix typos in diayn example notebook
felixchalumeau Jun 10, 2022
8edf4f5
Merge branch 'feat/add-diayn' into feat/add-dads
felixchalumeau Jun 10, 2022
c775d04
clean notebook
felixchalumeau Jun 10, 2022
0821536
Merge branch 'develop' into feat/add-diayn
felixchalumeau Jun 13, 2022
f60a6d9
Merge branch 'feat/add-diayn' into feat/add-dads
felixchalumeau Jun 13, 2022
4243745
add comments in DIAYN docstrings
felixchalumeau Jun 13, 2022
685d23c
refacto sac to increase inheritance of diayn
felixchalumeau Jun 14, 2022
6fad735
minor change
felixchalumeau Jun 14, 2022
4844888
add dosctrings
felixchalumeau Jun 14, 2022
171768d
Merge branch 'feat/add-diayn' into feat/add-dads
felixchalumeau Jun 14, 2022
c1ac24b
take advantage of sac inheritance
felixchalumeau Jun 14, 2022
14eb589
Merge branch 'develop' into feat/add-dads
felixchalumeau Jun 14, 2022
d590d7b
minor changes and comments
felixchalumeau Jun 14, 2022
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
555 changes: 555 additions & 0 deletions notebooks/dads_example.ipynb

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion notebooks/mapelites_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
"num_iterations = 1000 #@param {type:\"integer\"}\n",
"seed = 42 #@param {type:\"integer\"}\n",
"policy_hidden_layer_sizes = (64, 64) #@param {type:\"raw\"}\n",
"iso_sigma = 0.005 #@param {type:\"number\"}\n",
"line_sigma = 0.05 #@param {type:\"number\"}\n",
"num_init_cvt_samples = 50000 #@param {type:\"integer\"}\n",
"num_centroids = 1024 #@param {type:\"integer\"}\n",
"min_bd = 0. #@param {type:\"number\"}\n",
Expand Down Expand Up @@ -231,7 +233,7 @@
"source": [
"# Define emitter\n",
"variation_fn = functools.partial(\n",
" isoline_variation, iso_sigma=0.005, line_sigma=0.05\n",
" isoline_variation, iso_sigma=iso_sigma, line_sigma=line_sigma\n",
")\n",
"mixing_emitter = MixingEmitter(\n",
" mutation_fn=None, \n",
Expand Down
4 changes: 3 additions & 1 deletion notebooks/pgame_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
"num_iterations = 100 #@param {type:\"integer\"}\n",
"seed = 42 #@param {type:\"integer\"}\n",
"policy_hidden_layer_sizes = (64, 64) #@param {type:\"raw\"}\n",
"iso_sigma = 0.005 #@param {type:\"number\"}\n",
"line_sigma = 0.05 #@param {type:\"number\"}\n",
"num_init_cvt_samples = 50000 #@param {type:\"integer\"}\n",
"num_centroids = 1024 #@param {type:\"integer\"}\n",
"min_bd = 0. #@param {type:\"number\"}\n",
Expand Down Expand Up @@ -265,7 +267,7 @@
"source": [
"# Get the emitter\n",
"variation_fn = functools.partial(\n",
" isoline_variation, iso_sigma=0.005, line_sigma=0.05\n",
" isoline_variation, iso_sigma=iso_sigma, line_sigma=line_sigma\n",
")\n",
"\n",
"pg_emitter = PGEmitter(\n",
Expand Down
Loading