adaptive-intelligent-robotics / QDax

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

Make `MAPElitesRepertoire` more modular so that it can store any kind of information. #191

Open Lookatator opened 2 months ago

Lookatator commented 2 months ago

Make MAPElitesRepertoire more modular so that it can store any kind of information (e.g. observations for AURORA).

The idea would be to add some extra_infos attribute to it (type: Dict[str, pytree]).

Also the repertoire should take as input a tuple of the fields (type: Tuple[str]), and only save the items of the batch extra_infos whose keys are equal to the fields passed as input. This way we can avoid storing too much in the repertoires.