Minimal PyTorch Library for Differential Evolution
Project description
Minimal PyTorch Library for Differential Evolution
Requirements
pipcs
numpy
torch
mpi4py
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
Usage
See https://github.com/goktug97/de-torch/blob/master/examples
Check https://github.com/goktug97/pipcs to understand the configuration system.
Check https://github.com/goktug97/de-torch/blob/master/de/config.py for parameters.
You can run the example with
python example.py
or in parallel for faster training.
mpirun -np 2 python example.py
Another Evolution Library for PyTorch
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
detorch-1.0.1.tar.gz
(7.5 kB
view hashes)