https://github.com/marcelja/dynamicpricing
This is the best merchant of all time
https://github.com/marcelja/dynamicpricing
dynamic pricing
Last synced: 11 months ago
JSON representation
This is the best merchant of all time
- Host: GitHub
- URL: https://github.com/marcelja/dynamicpricing
- Owner: marcelja
- Created: 2017-06-01T16:20:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T10:03:40.000Z (over 8 years ago)
- Last Synced: 2025-07-13T21:31:45.275Z (11 months ago)
- Topics: dynamic, pricing
- Language: Python
- Homepage:
- Size: 10.9 MB
- Stars: 10
- Watchers: 3
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Data-Driven Demand Learning and Dynamic Pricing Strategies in Competitive Markets
The main merchant is Random Forest (`merchant/rand_for.py` or `merchant/demand_learning.py`).
### Setup
* Install Python 3.6 or create virtual environment (e.g. `virtualenv -p python3.6 env` and `source env/bin/activate`)
* `pip install -r requirements.txt`
* `cd merchant`
* Run tests: `python -m unittest`
### Start merchant on platform
* Go to `http://vm-mpws2016hp1-02.eaalab.hpi.uni-potsdam.de/#/deployment`
* Merchant API: `http://vm-dynpricing-team-8.eaalab.hpi.uni-potsdam.de:`
* Set environment variables:
```
export PRICEWARS_MARKETPLACE_URL="vm-mpws2016hp1-04.eaalab.hpi.uni-potsdam.de:8080/marketplace"
export PRICEWARS_PRODUCER_URL="vm-mpws2016hp1-03.eaalab.hpi.uni-potsdam.de"
export PRICEWARS_KAFKA_REVERSE_PROXY_URL="vm-mpws2016hp1-05.eaalab.hpi.uni-potsdam.de:8001"
export API_TOKEN=""
```
* `python rand_for.py --port `
* Go to `http://vm-mpws2016hp1-02.eaalab.hpi.uni-potsdam.de/index.html#/config/merchant` and start merchant
### Reset merchant
* Stop server (Ctrl+C)
* `rm ../tmp/*`
* Start server (`python rand_for.py --port `)
### CSV interface
* `rm ../tmp/*`
* `python rand_for.py --train --buy --merchant --test --output out.txt`