Coder Social home page Coder Social logo

trellixvulnteam / tmp-cctestbed_5z35 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arukshani/tmp-cctestbed

0.0 0.0 0.0 896 KB

This is a copy of Ray's repo

Shell 1.42% JavaScript 0.02% C++ 3.30% Python 76.32% C 18.00% CSS 0.02% Makefile 0.04% HTML 0.63% Vim Script 0.26%

tmp-cctestbed_5z35's Introduction

Classification

To classify the congestion control algorithm of websites, run python3.6 classify_websites.py --website [website1] [file1] --website [website2] [file2]...

How it works

classify_websites.py performs the following steps for each website:

  1. Runs ccalg_predict.py, which completes at most 12 experiments, each with a different set of network conditions. Some network conditions may be skipped.
  2. Gets the predicted label for each experiment with classify_websites.snakefile.
  3. Experiments which are marked invalid by classify_websites.snakefile are rerun up to 3 times. If an experiment is still marked invalid after the third run, the predicted label for the experiment is considered unknown.
  4. Counts the predicted labels of the final experiments. If a label has a strict majority, the congestion control algorithm of the website is classified as the majority label. Otherwise the algorithm is classified as unknown.
  5. The predicted label for the website along with the names of the final experiments used in the prediction are printed and saved to /tmp/data-processed/[website]-[year][month][day][time].results, e.g. cca.org-20190915T103243.results.

The classification for a website will fail if an error is encountered when running either ccalg_predict.py or classify_websites.snakefile.

Logging

classify_websites.py logs info to /tmp/cctestbed-classify-websites.log.

tmp-cctestbed_5z35's People

Contributors

trellixvulnteam avatar patchtester 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.