Giter Club home page Giter Club logo

algorithmic_pricing_actorcritic's Introduction

Algorithmic Pricing using Soft Actor-Critic

Code for my master's thesis work on algorithmic pricing in continuous environments.

License

This code is released under the terms of the GNU Affero General Public License. If you use any of this in your own research, or take inspiration from it to develop a derivative work, please cite my thesis:

@mastersthesis{frick_autonomous_2022,
author = "Kevin Michael Frick",
title = "Autonomous Pricing using Policy Gradient Reinforcement Learning",
school = "Bologna University",
year = 2022,
address = "Bologna, Italy",
month = jul
}

Main code

To run an experiment:

usage: main.py [-h] [--out_dir OUT_DIR] [--device DEVICE] [--ai_last AI_LAST] [--demand_std DEMAND_STD]

Run an experiment

optional arguments:
  -h, --help               show this help message and exit
  --out_dir OUT_DIR        Directory
  --device DEVICE          CUDA device
  --ai_last AI_LAST        Last agent's demand parameter
  --demand_std DEMAND_STD  Standard deviation of a0 (for stochastic demand). Will be ignored if 0 or negative.

Plotting

To plot profits, state-action heatmaps and impulse responses:

usage: plot.py [-h] [--actor_hidden_size ACTOR_HIDDEN_SIZE] [--discount DISCOUNT] [--filename FILENAME] [--grid_size GRID_SIZE] [--out_dir OUT_DIR] [--plot_intermediate] [--seeds SEEDS [SEEDS ...]]
               [--movavg_span MOVAVG_SPAN] [--parse_csv] [--n_agents N_AGENTS]

Plot and write data

optional arguments:
  -h, --help            show this help message and exit
  --actor_hidden_size ACTOR_HIDDEN_SIZE
  --discount DISCOUNT
  --filename FILENAME
  --grid_size GRID_SIZE
  --out_dir OUT_DIR     Directory
  --plot_intermediate
  --seeds SEEDS [SEEDS ...]
                        Random seeds
  --movavg_span MOVAVG_SPAN
                        Moving average span
  --parse_csv
  --n_agents N_AGENTS   Number of agents

algorithmic_pricing_actorcritic's People

Contributors

kmfrick avatar

Watchers

 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.