cog-imperial / entmoot

Multiobjective black-box optimization using gradient-boosted trees
https://entmoot.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
56 stars 12 forks source link

Typed parameters of Enting model #26

Closed TobyBoyne closed 1 year ago

TobyBoyne commented 1 year ago

This address issues #19 and #23, providing a typed dataclass for the Enting parameters, as well as a helper function for constructing from a dictionary (to not break existing uses). I haven't changed the bulk of the Enting code to use this dataclass since I wanted to first see whether this approach is the best. Some alternatives that I considered that don't work as well as dataclasses:

Let me know what you think!