nnaisense / evotorch

Advanced evolutionary computation library built directly on top of PyTorch, created at NNAISENSE.
https://evotorch.ai
Apache License 2.0
997 stars 62 forks source link

Fix VecGymNE so that it can work with adaptive popsize #106

Closed engintoklu closed 3 months ago

engintoklu commented 3 months ago

The problem class VecGymNE used to fail when a distribution-based search algorithm (such as PGPE or CEM) was used with adaptive population size (enabled with the setting num_interactions=...) in non-distributed mode (i.e. with distributed set as False). The reason for this was that VecGymNE was not reporting the number interactions and the number of episodes it encountered in its status dictionary. This pull request fixes this mentioned issue, allowing VecGymNE to work with adaptive population size under non-distributed mode.