Git Product home page Git Product logo

pitree's Introduction

PiTree

PiTree is a conversion tool to automatically and faithfully convert complex adaptive bitrate algorithms into lightweight decision trees. This repository is the official release of the following paper:

Zili Meng, Jing Chen, Yaning Guo, Chen Sun, Hongxin Hu, Mingwei Xu. PiTree: Practical Implementations of ABR Algorithms Using Decision Trees. In Proceedings of ACM Multimedia 2019.

For more information, please refer to https://transys.io/pitree.

Prerequisites

Tested with Python 3.7.4:

pip install -r requirements.txt
unzip traces.zip
unzip models.zip

Converting Decision Trees

Pre-built ABR Algorithms: RobustMPC, Pensieve, and HotDASH

python learn_dt.py -a pensieve -t fcc -i 500 -n 100 -q lin
Parameter Candidates Explanation
-a {robustmpc, pensieve, hotdash} The ABR algorithm to convert.
-i Integer (default=500) Number of iterations during training.
-n Integer (default=100) Number of leaf nodes.
-q {lin, log, hd} QoE metrics.
-t {fcc, norway, oboe} Trained traces.
-v {0,1} Visualized the output decision tree.
-w Integer (default=1) Degree of parallelism of teacher.predict().

The converted decision tree could be found at tree/, in the pickle format.

Add Your Own ABR Algorithms

If you want to test your own ABR algorithms with PiTree, you could

  • Expose the predict function of your methods in the format of $a=f(s)$.
  • Put your model into models/ (if any).
  • Add your methods into the interfaces defined in learn_dt.py.

(We will refactor the codes soon in a more user-friendly way and will update the repo soon.)

Emulation with Mahimahi

python main.py -a pensieve -t fcc -q lin -d
Parameter Candidates Explanation
-a {robustmpc, pensieve, hotdash} The ABR algorithm to convert.
-d {0,1} Predict with the decision tree (1) or the original model (0).
-l {0,1} Log the states and bitrates.
-q {lin, log, hd} QoE metrics.
-t {fcc, norway, oboe} Trained traces.

Start a Server with Tornado

python server_tornado.py

Contact

For any questions, please post an issue or send an email to [email protected].

pitree's People

Contributors

mengzili 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.