Giter Site home page Giter Site logo

lsmsimulation's Introduction

Exploring the Bank of England's Liquidity Saving Mechanism Algorithms

This project aims to provide a simulator for CHAPS that can be used to test different system configurations and the impacts of bilateral and mulitlateral offsetting algorithms on useful metrics from the Bank of England's and individuals DPs point of view.

Table of Contents

Introduction

There are a few different components to this repository.

  • Synthetic Data Generation
  • Running the Simulator
  • Training the RL agents

Installation

To install the project and its dependencies, follow these steps:

  1. Clone the repository:

    • git clone https://github.com/Charles0Yang/LSMSimulation
  2. Navigate to the project directory

  3. Create a virtual environment (optional but recommended):

    • python -m venv venv
  4. Activate the virtual environment:

    • On Windows:
      • venv\Scripts\activate
    • On macOS and Linux:
      • source venv/bin/activate
  5. Install the project dependencies:

    • pip install -r requirements.txt

    This command will install all the required Python packages listed in the requirements.txt file.

Usage

Generating Synthetic Datasets

The generation of synthetic datasets is done in src/data_scripts/basic_generation.py. This can be run individually by specifiying the data generation config, and providing this to the generateData function.

Running Simulations

Simulations can be run using the provided functions in src/simulation/multiple_simulator.py. These perform a variety of different functions, from assessing the impacts of delay DPs to just running a full pas provided a day config. The settings for the simulations can be found in src/simulation/settings.py which defines multiple parameters necessary for the simulation.

Training the RL Agent

This is done in src/rl/bankenv.py. Fixed parameters such as the fixed reward and delay penalty can be defined for each run.

License

MIT License

Copyright (c) [2024] [Charles Yang]

lsmsimulation's People

Contributors

charles0yang avatar

Watchers

 avatar Romeo Basser 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.