Skip to content

bartvm/scale-contest-evaluator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scale-contest-evaluator

You can import the class by putting the file in the right folder and typing

import scale

To run the algorithm on a file and calculate the score use:

scale.main('week1.log')

To simulate events with a constant arrival rate for e.g. 300 seconds:

simulation = scale.Simulation(300, {'url': 1.2, 'default': 0.7, 'export': 1.7})
simulation.load_service_distribution('week1.log')
for event in simulation.generator():
    print event

About

The evaluator script for the Prezi Scale contest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%