icaros-usc / pyribs

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

Support seed=SeedSequence in emitters #440

Closed btjanaka closed 6 months ago

btjanaka commented 6 months ago

Description

Previously, passing a SeedSequence as a seed in EvolutionStrategyEmitter and GradientArborescenceEmitter threw an error because SeedSequence cannot be initialized from another SeedSequence. This PR adds checks for SeedSequence so that SeedSequence can be passed in as a seed in these two emitters. Note that in other emitters, the seed is passed directly to the default_rng(), which can handle SeedSequence as input.

Status