nnaisense / evotorch

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

Make EvoTorch future-proof #77

Closed engintoklu closed 1 year ago

engintoklu commented 1 year ago

Some of the dependencies of EvoTorch became deprecated over time. This pull request aims to replace those deprecated requirements with their up-to-date counterparts. In more details, the following changes are introduced:

Status. Currently, the unit tests pass successfully. Apart from the unit tests, test runs are still needed to ensure the correctness of these changes.

codecov[bot] commented 1 year ago

Codecov Report

Attention: 102 lines in your changes are missing coverage. Please review.

Comparison is base (9d31d59) 77.83% compared to head (29f5103) 76.90%. Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #77 +/- ## ========================================== - Coverage 77.83% 76.90% -0.94% ========================================== Files 49 49 Lines 7332 7455 +123 ========================================== + Hits 5707 5733 +26 - Misses 1625 1722 +97 ``` | [Files](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense) | Coverage Δ | | |---|---|---| | [src/evotorch/algorithms/mapelites.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL2FsZ29yaXRobXMvbWFwZWxpdGVzLnB5) | `83.87% <100.00%> (+0.17%)` | :arrow_up: | | [src/evotorch/core.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL2NvcmUucHk=) | `74.34% <100.00%> (-0.16%)` | :arrow_down: | | [src/evotorch/neuroevolution/gymne.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL25ldXJvZXZvbHV0aW9uL2d5bW5lLnB5) | `79.37% <100.00%> (-0.16%)` | :arrow_down: | | [src/evotorch/neuroevolution/net/rl.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL25ldXJvZXZvbHV0aW9uL25ldC9ybC5weQ==) | `51.63% <100.00%> (ø)` | | | [src/evotorch/neuroevolution/vecgymne.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL25ldXJvZXZvbHV0aW9uL3ZlY2d5bW5lLnB5) | `79.70% <100.00%> (ø)` | | | [src/evotorch/tools/\_\_init\_\_.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL3Rvb2xzL19faW5pdF9fLnB5) | `100.00% <ø> (ø)` | | | [src/evotorch/tools/readonlytensor.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL3Rvb2xzL3JlYWRvbmx5dGVuc29yLnB5) | `72.82% <100.00%> (+0.29%)` | :arrow_up: | | [src/evotorch/logging.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL2xvZ2dpbmcucHk=) | `90.29% <75.00%> (-0.31%)` | :arrow_down: | | [src/evotorch/tools/objectarray.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL3Rvb2xzL29iamVjdGFycmF5LnB5) | `72.51% <80.00%> (-0.27%)` | :arrow_down: | | [src/evotorch/neuroevolution/net/functional.py](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense#diff-c3JjL2V2b3RvcmNoL25ldXJvZXZvbHV0aW9uL25ldC9mdW5jdGlvbmFsLnB5) | `93.75% <92.00%> (+1.02%)` | :arrow_up: | | ... and [2 more](https://app.codecov.io/gh/nnaisense/evotorch/pull/77?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nnaisense) | |

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