Skip to main content

Minimal PyTorch Library for Differential Evolution

Requirements

numpy
torch

Optional

mpi4py # If you want to run in parallel
gym # For examples

To install mpi4py you need MPI installed in the system. Check: https://mpi4py.readthedocs.io/en/stable/install.html

A Dockerfile is provided for convenience.

Installation

pip install detorch --user

Source

git clone --recursive https://github.com/goktug97/de-torch
cd de-torch
python3 setup.py install --user

Usage

See https://github.com/goktug97/de-torch/blob/master/examples

Check https://github.com/goktug97/de-torch/blob/master/detorch/config.py for parameters.

You can run the example with

PYTHONPATH="$(pwd):$PYTHONPATH" python examples/example.py

or in parallel for faster training (requires mpi4py).

PYTHONPATH="$(pwd):$PYTHONPATH" mpirun -np 2 python examples/example.py

Another Evolution Library for PyTorch

https://github.com/goktug97/nes-torch

Release files for detorch 1.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for detorch 1.2.4
File Size Uploaded
detorch-1.2.4.tar.gz 10.5 kB Details

Release files / detorch-1.2.4.tar.gz

Download URL detorch-1.2.4.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e4215e81df13ff13cb73996b01de1f3929fef4eb38013bee45ce2f2cd27aa7bd
BLAKE2b-256 checksum
How to use checksums
a67ee7479188278bf3ca83aa5db6dcdd1a9aa81cb93b24f7dbea482a45254d94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.2.4 This release

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.0

2 release files

0.1.1

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page