disease-model's Introduction
In this network epidemiology simulation, the main tasks are: 1) create population graphs of two countries, find the highly connected clusters in each country, and split country into clusters 2) choose some people from a list of people on the critical edges, infect them. Then spread infection one layer outward each time. In the version “FinalVirusModel,” inoculation occurs automatically after two rounds of infection. In “SlightlyDiffVersion,” the moment of inoculation is decided by user via button-click. There is a time lag between the click and when inoculation takes effect. Thus, if user clicks “start infection” during that lag time, it is uncertain whether the virus or the inoculation would travels faster and take effect first. That’s the only different between “FinalVirusModel” and “SlightlyDiffVersion.” In each folder there are three files: “allclasses.py” contains class Person, and class Graph (undirected). Each country’s population is one graph, with person objects directly being the nodes. The edges in graph is constructed from the each person’s list of friends. In “main.py,” we constructed a Simulation class which initializes all person and graph objects, and starts the action. For security, password needs to be set and entered before starting the simulation. “RUNme.py” contains the GUI. Besides the obvious features that need no explanation, I just want to highlight: our display of infection spreading outwards involves animated virus moving from all infected people to their neighbors. We like this feature a lot.
disease-model's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.