GithubHelp home page GithubHelp logo

zhy0 / market_rl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asikist-ethz/market_rl

0.0 2.0 0.0 354 KB

Some basic code for the course project

License: MIT License

Python 63.66% Jupyter Notebook 36.34%

market_rl's Introduction

Reinforcement Learning for Markets

Quick Intro

This project contains sample code relevant to a possible topic for the project of Agent-Based Modeling and Social System Simulation at ETH Zürich, https://coss.ethz.ch/education/agentBased.html.

The code is not expected to be used as-is, but modifications and testing need to be done from each team, to modify it to their requirements and needs. In the case that you detect a bug or any other issue, please don't hesitate to report in the Issues section and/or mention it in the relevant slack channel: https://abm-teams.slack.com/.

Installation Info

The proposed implementation relies on usage of Python 3.6 or higher. For the environment to work, the usage of conda or miniconda is suggested. This helps to avoid messing up your pc's default python environment. Please find information about installing miniconda in: https://docs.conda.io/en/latest/miniconda.html

Once conda is installed, please create and activate the following environment:

conda create -env abm_sss
conda activate abm_sss
# in older version of conda: 
# source activate abm_sss

Then it is suggested that you install with pip the following:

pip install jupyter
pip install pandas

# for plotting
pip install plotly
pip install holoviews

For reinforcement learning, the following libraries are suggested:

pip install tensorforce[tf]
#for gpu: 
#pip install tensorforce[tf_gpu]
pip install stable-baselines[mpi]

Sometimes the mpi installation may fail with pip, then you can use conda:

conda install mpi4py
#the retry with stable baselines

In general openai gym is used by the project. This either comes with the stable-baselines module or you can install it via:

pip install gym

Once everything is installed, please download or clone the project and use it locally, with your editor of choice, from the rl_markets_code/ directory

Examples

A notebook containing appropriate an appropritate example and explanations is found at rl_markets_code/example.ipynb. At a later stage the github will be updated with reinforcement learning examples relevant to the lectures of 14.10 and 21.10. In the meantime you can start experiementing with the above.

Project Description

An overview of the project description is found in project_description.pdf. Relevant papers and the description will be uploaded on the course website in the coming days.

Further Extensions

Asynchronous versions of the multi-agent environment and single agent environments will be demonstrated in the course. Still, you are encouranged to try you own implementations based on the scope of your project untill then.

market_rl's People

Contributors

asikist-ethz avatar zhy0 avatar

Watchers

James Cloos avatar  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.