icaros-usc / pyribs

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

Replace archive.dtype with archive.dtypes dict that holds dtype of every field #470

Closed btjanaka closed 3 months ago

btjanaka commented 3 months ago

Description

Previously, the archives had a dtype property that held the dtype of the solution, objectives, and measures. However, these three may not always have the same dtype; furthermore, this excludes the threshold field and other additional fields provided by the user. Thus, this PR replaces dtype with dtypes, a dict that maps from field name to dtype of the associated field.

TODO

Status