Giter VIP home page Giter VIP logo

ta-daming's Introduction

Data Mining Project

We make SIR model with python from COVID-19 Italy dataset.

Installation

Use the package manager pip to install required packages.

pip install numpy
pip install matplotlib
pip install scipy
pip install beautifulsoup4
pip install requests

Python version used :

python --version
Python 3.6.8

Usage

Brief Summary

There are 3 main file in the root directory.

  1. Scrapper scrapper.py Is used to download automatically the data from the github. Here is the github link
  2. Cleaner cleaner.py Is used to clean the downloaded data and save the new data in dataset/dataframe.csv
  3. Runner runner.py Is used to run the SIR model and compare it to the dataset/dataframe.csv so that we can get the accuracy of the model.

How to run

First, thing first. Install all the requirement. And then, run the scrapper.py like this :

python scrapper.py

Wait untill all the data is downloaded into the ./dataset/ folder. After that, the second thing we must do is clean the data :

python cleaner.py

After the data has been cleaned. We can continue to run the runner file :

python runner.py

We can see in stdout about the details. And also, remember that the value of constant.TIME must be equal to the number of row in dataframe. Unless you dont want to plot the real data result.

Model Detail

There are two models that we provide :

  1. SIR (Susceptible, Infected, Recovered/Removed)
  2. SEIRD (Susceptible, Exposed, Infected, Recovered, Death)

You can find both model file python in ./model/ directory

Contributing

No contributor needed

References

License

MIT

ta-daming's People

Contributors

mhilmyh avatar

Watchers

 avatar  avatar  avatar  avatar

ta-daming's Issues

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.