evotorch icon indicating copy to clipboard operation
evotorch copied to clipboard

Introduce functional genetic algorithm operators

Open engintoklu opened this issue 1 year ago • 1 comments

Alternative implementations for genetic algorithm operators are introduced. These alternative implementations conform to the paradigm of functional programming, and they are batchable (via simply adding a leftmost dimension to the population, or via torch.func.vmap).

A custom genetic algorithm can be implemented by combining these operators.

engintoklu avatar Jul 22 '24 16:07 engintoklu

Codecov Report

Attention: Patch coverage is 76.09489% with 131 lines in your changes missing coverage. Please review.

Project coverage is 77.02%. Comparing base (5c58566) to head (27fd934). Report is 14 commits behind head on master.

Files with missing lines Patch % Lines
src/evotorch/operators/functional.py 82.16% 89 Missing :warning:
src/evotorch/core.py 14.28% 36 Missing :warning:
src/evotorch/tools/immutable.py 0.00% 6 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #109      +/-   ##
==========================================
+ Coverage   76.74%   77.02%   +0.27%     
==========================================
  Files          49       58       +9     
  Lines        7509     9017    +1508     
==========================================
+ Hits         5763     6945    +1182     
- Misses       1746     2072     +326     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Aug 30 '24 16:08 codecov[bot]