GithubHelp home page GithubHelp logo

credibility_allocation's Introduction

Credibility Allocation

Simulate credibility allocation using the Google Cluster Data.

In this repo you will find the code to aggregate users requests, discretize their needs, simulate the credibility allocation and run some experiments on it.

Usage

Download the Google dataset following the instructions here.

Clone this repo:

git clone [email protected]:hugombarreto/credibility_allocation.git

Install the dependencies:

pip install -r credibility_allocation/requirements.txt

Run it for usage information:

python credibility_allocation --help

For further help in a particular subcommand you can run:

python credibility_allocation SUBCOMMAND --help

Subcommands

Here we detail the purpose of each subcommand. In an usual workflow they are likely used in the order they appear here (except for the multicore_simulate_allocation which is in fact an alternative to the simulate_allocation).

aggregate_user_events:Inspect dataset events aggregating cpu and memory requests for each user in a separate file for each.
generate_user_needs:Aggregates all resource requests so that we have, at a given timestamp, the amount of resources needed by the user.
sample_needs:Sample needs for each user following a period specified. Creates a single file with all users types for every timestamp.
simulate_allocation:Simulate allocation using sampled types created with the sample_needs. It generates a file with the allocations for every user on every iteration.
multicore_simulate_allocation:Alternative to the simulate_allocation using multiple CPU cores. It monitors the memory usage so as to avoid swapping.
experiments:Runs a set of experiments using the simulation output.

credibility_allocation's People

Contributors

hsadok avatar

Watchers

James Cloos 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.