Skip to main content

Minimal PyTorch Library for Natural Evolution Strategies

Project description

Minimal PyTorch Library for Natural Evolution Strategies

Requirements

pipcs
numpy
torch
gym
mpi4py

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 nes-torch --user

Documentation

https://nestorch.readthedocs.io/

Usage

See https://github.com/goktug97/nes-torch/blob/master/example.py https://github.com/goktug97/nes-torch/blob/master/minimal_example.py

Check https://github.com/goktug97/pipcs to understand the configuration system.

Check documentation or https://github.com/goktug97/nes-torch/blob/master/nes/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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nes-torch-1.1.3.tar.gz (395.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page