项目作者: aserhiychuk

项目描述 :
Deep Reinforcement Learning library for Python
高级语言: Python
项目地址: git://github.com/aserhiychuk/pyreinforce.git
创建时间: 2019-05-14T23:25:23Z
项目社区:https://github.com/aserhiychuk/pyreinforce

开源协议:MIT License

下载


PyReinforce

PyReinforce is a collection of algorithms that can be used to solve a variety of different reinforcement learning problems.

Breakout Pong Space Invaders
Breakout Pong Space Invaders
Cart Pole Lunar Lander Pendulum
Cart Pole Lunar Lander Pendulum

Basics

This is how OpenAI Gym describes the reinforcement learning process:

There are two basic concepts in reinforcement learning: the environment (namely, the outside world) and the agent (namely, >the algorithm you are writing). The agent sends actions to the environment, and the environment replies with observations and >rewards (that is, a score).

PyReinforce is fully compatible with OpenAI Gym. In fact, it will work with any environment as long as it implements these methods:

  • reset()
  • step(action)

Your part is to implement a Brain: a neural network that agents use to decide which actions to pick for given states. Agents get better over time by performing training steps on their brains. See examples for more details.

Installation

Install PyReinforce from PyPI:

  1. pip install PyReinforce

or from source:

  1. git clone https://github.com/aserhiychuk/pyreinforce.git
  2. cd pyreinforce
  3. pip install -e .

Examples

In order to run the examples you need to install dependencies:

  1. pip install -r examples/requirements.txt