feat: Add torch-based CMA-ES implementation #41
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request:
evotorch.algorithms.cmaes.CMAES
, which is simply a wrapper for pycma toevotorch.algorithms.pycmaes.PyCMAES
.evotorch.algorithms.cmaes.CMAES
. This aims to faithfully reimplement the most recent version of pycma, while also benefiting from the evotorch ecosystem e.g. vectorized, GPU based, working with torch tensors for compatibility with other features.evotorch.algorithms.restarters
, which provides basic functionality for meta-algorithms that wrap around aSearchAlgorithm
class + parameterization, and allow automatic restarting of the algorithm. This creates basic functionality for the eventual re-implementation e.g. of IPOP-CMA-ES and BIPOP-CMA-ES, and equivalent algorithms for XNES, SNES etc.is_terminated
flag to allSearchAlgorithm
classes, that will allow the user to define their own general functionality for detecting termination states that should trigger restarts. Currently, this value defaults toFalse
, but in the future it is intended to add example termination states to the newCMAES
implementation.