adaptive-intelligent-robotics / QDax

Accelerated Quality-Diversity
https://qdax.readthedocs.io/en/latest/
MIT License
268 stars 46 forks source link

`MAPElitesRepertoire` sampling function should be more modular. #192

Open Lookatator opened 2 months ago

Lookatator commented 2 months ago

MAPElitesRepertoire sampling function should be more modular.

For instance, the sampling function can return a pytree of type MAPElitesRepertoire, with all the corresponding information (genotypes, fitnesses, descriptors, and so on...)

This way, no need to implement new functions (as currently done for some algorithms) every time we need to sample genotypes with extra information.