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

Default Scoring Functions for Sphere, Rastrigin, Arm and Brax environments #73

Merged
merged 56 commits into from
Oct 13, 2022

Conversation

Lookatator
Copy link
Member

@Lookatator Lookatator commented Aug 3, 2022

  • adding sphere, rastrigin, arm, and noisy_arm scoring functions
  • adding possibility to create default scoring_function for brax environments.
  • Changing type of EnvState to brax.envs.State
  • Fix some quick typing inconsistencies throughout the code .
  • update README to include the default functions and make it a usable readme
  • create an examples directory to include script form of some examples

@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2022

Codecov Report

Merging #73 (ed52ea6) into develop (ab4d4ca) will increase coverage by 1.03%.
The diff coverage is 95.53%.

@@             Coverage Diff             @@
##           develop      #73      +/-   ##
===========================================
+ Coverage    89.68%   90.72%   +1.03%     
===========================================
  Files           68       82      +14     
  Lines         3957     4572     +615     
===========================================
+ Hits          3549     4148     +599     
- Misses         408      424      +16     
Impacted Files Coverage Δ
qdax/tasks/qd_suite/qd_suite_task.py 79.31% <79.31%> (ø)
qdax/tasks/brax_envs.py 88.33% <88.33%> (ø)
tests/default_tasks_test/qd_suite_test.py 92.68% <92.68%> (ø)
qdax/tasks/qd_suite/archimedean_spiral.py 93.54% <93.54%> (ø)
qdax/utils/plotting.py 36.36% <95.00%> (+2.90%) ⬆️
tests/default_tasks_test/arm_test.py 96.77% <96.77%> (ø)
tests/default_tasks_test/brax_task_test.py 97.14% <97.14%> (ø)
...s/default_tasks_test/hypervolume_functions_test.py 97.22% <97.22%> (ø)
...ests/default_tasks_test/standard_functions_test.py 97.22% <97.22%> (ø)
qdax/tasks/qd_suite/ssf.py 97.82% <97.82%> (ø)
... and 13 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Lookatator Lookatator marked this pull request as ready for review August 9, 2022 07:14
…ipt style examples instead of notebook style examples
…d of just a minimal code example that doesnt work
@limbryan limbryan marked this pull request as draft August 19, 2022 13:16
…onding test. TODO: add pdf summarizing the functions and default tasks
@@ -0,0 +1,106 @@
"""Test default rastrigin using MAP Elites"""

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file looks more like testing MAP-Elites rather than arm task. Maybe we could think about just a few simple tests that check the implementation works as expected.

@felixchalumeau felixchalumeau linked an issue Sep 6, 2022 that may be closed by this pull request
@Lookatator Lookatator marked this pull request as ready for review September 8, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding tasks and default scoring functions
5 participants