Git Product home page Git Product logo

covid-19-severe-risk-classification-analysis's Introduction

COVID-19-Severe-Risk-Classification-Analysis

The project is to generate a dataset and use Decision Tree and Random Forest to classify and analyze the severe risk of COVID-19 patients.

If you want to know more about the project, please read the report.pdf

Usage

python3 generate.py -a [IS_ALTERING]

Generate the C19SR dataset.
[IS_ALTERING] is a boolean value, which can be True or False.

python3 main.py -dp [DATA_PATH] -mn [MODEL_NAME]

Train and test the C19SR dataset with Decision Tree or Random Forest.
[DATA_PATH] is the path of the C19SR dataset.
[MODEL_NAME] is the name of the model, which can be decision_tree or random_forest.

Requirements

matplotlib   == 3.7.3
numpy        == 1.24.4
pandas       == 2.0.3
pydotplus    == 2.0.2
scikit-learn == 1.3.2

You can install the requirements by pip3 install -r requirements.txt.

My Environment

  • Windows 11 Home
    • Version: 22H2
    • OS build: 22621.2428
  • Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz 2.30 GHz
  • NVIDIA GeForce GTX 1050
    • Driver Version: 537.42
    • CUDA Version: 12.2

Common Issues

graphviz

Graphviz's executables are not found.

Solution: conda install graphviz
Reference: Graphviz's executables are not found (Python 3.4)

covid-19-severe-risk-classification-analysis's People

Contributors

yxhong-tw avatar

Watchers

 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.