Git Product home page Git Product logo

dynamicpricing's Introduction

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:<PORT>
  • 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="<API TOKEN>"
  • python rand_for.py --port <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 <PORT>)

CSV interface

  • rm ../tmp/*
  • python rand_for.py --train <train_offers.csv> --buy <buy_offers.csv> --merchant <merchant_id> --test <test_offers.csv> --output out.txt

dynamicpricing's People

Contributors

marcelja avatar nhoff95 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.