Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Minimal PyTorch Library for Natural Evolution Strategies
https://github.com/goktug97/nes-torch

evolution-strategies evolution-strategy evolutionary-algorithms natural-evolution-strategies policy-gradient pytorch reinforcement-learning

Last synced: about 2 months ago
JSON representation

Minimal PyTorch Library for Natural Evolution Strategies

Awesome Lists containing this project

README

        

Minimal PyTorch Library for Natural Evolution Strategies
========================================================



# Requirements

```
numpy
torch
```

## Optional
```
gym # For gym examples
mpi4py # For parallelization
```

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

```bash
pip install nes-torch --user
```

# Documentation
https://nestorch.readthedocs.io/

# Usage
See https://github.com/goktug97/nes-torch/blob/master/examples

Check documentation or https://github.com/goktug97/nes-torch/blob/master/nes/config.py for parameters.

You can run the example with
```bash
PYTHONPATH="$(pwd):$PYTHONPATH" python examples/example.py
```
or in parallel for faster training.
```bash
PYTHONPATH="$(pwd):$PYTHONPATH" mpirun --np 2 python examples/example.py
```