icaros-usc / pyribs

A bare-bones Python library for quality diversity optimization.
https://pyribs.org
MIT License
208 stars 33 forks source link

Add DQD Tutorial #267

Closed Nivedit24 closed 1 year ago

Nivedit24 commented 1 year ago

Description

Adding DQD Tutorial https://colab.research.google.com/drive/1DCSFluMmquFPZ2rgUQWA44IPcu7EBfUJ#scrollTo=cr-94yAuzYns

LemonPi commented 1 year ago

Hi I am interested in trying out DQD and it seems the dqd repository is deprecated in favor of pyribs. While this pull request hasn't been merged, is there a reason why the collab link you posted is private? I'd like to see how to use the GradientArborescenceEmitter (which should implement CMA-MEGA).

btjanaka commented 1 year ago

Hi I am interested in trying out DQD and it seems the dqd repository is deprecated in favor of pyribs. While this pull request hasn't been merged, is there a reason why the collab link you posted is private? I'd like to see how to use the GradientArborescenceEmitter (which should implement CMA-MEGA).

Hi @LemonPi, the notebook in the private Colab link you mentioned syncs to this GitHub repository, so you can still download the notebook from GitHub. You can also view the notebook using Colab's ability to access public GitHub notebooks; see this link: https://colab.research.google.com/github/icaros-usc/pyribs/blob/dqdTutorial/examples/tutorials/DQDTutorial.ipynb

If you need an example of DQD immediately, I recommend looking at the sphere example, specifically this line: https://github.com/icaros-usc/pyribs/blob/master/examples/sphere.py#L267 Also pay attention to the use of ask_dqd and tell_dqd when calling the scheduler.

Note that the tutorial is a huge work-in-progress. I'm not sure when it will be ready since it is finals season for us here at USC, but keep an eye on this thread and you should see a notification when it's merged.

Cheers :)

btjanaka commented 1 year ago

Hi @Nivedit24, thank you for helping us implement this tutorial! I'm glad to say it's now merged.