Giter VIP home page Giter VIP logo

gym-stock-exchange's Introduction

Gym-Stock-Exchange

Implementing a stock-exchange environment in OPEN-AI's gym environment.

Getting Started

To get started, you’ll need to have Python 3.5+ installed. Simply install gym using pip:

pip install gym

Once gym is installed, clone this repository, then run

python3 demo_exchange.py

There are two versions, discrete and continuous action space - agents may require one or the other - DDPG vs naive DQN, for example. env = gym.make('game-stock-exchange-v0') is for a discrete environment. env = gym.make('game-stock-exchange-continuous-v0') is for a continuous environment.

Code for continuous and discrete are found here.

TensorFlow

If you want to integrate reinforcement learning agents, I recommend using baselines, or stable baselines. These are based on tensorflow.

PyTorch

If you're a fan of pytorch, stock-exchange-pytorch supports implementations for reinforcement learning and supervised learning. This repository is actually an offshoot of that project.

Examples of Reinforcement Learnings

With a random agent, an output of demo_stock_exchange.py is like so:

screenshot

With stable-baselines, Advantage Actor Critic (A2C) is used in the demo_exchange.py to train the model. An output of such is like so: screenshot

gym-stock-exchange's People

Contributors

wbaik avatar

Watchers

James Cloos avatar

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.