Coder Social home page Coder Social logo

de-torch's Introduction

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

de-torch's People

Contributors

goktug97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

quoding

de-torch's Issues

How to mutate images

Thank you. I am currently checking out the possibility of using DE in my thesis. This paper is using DE to perturb a pixel. The DE implementation is from Scipy. How is yours different from theirs? can I use the one in this repo like it's used in the paper? Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.