GithubHelp home page GithubHelp logo

cs145covid's Introduction

cs145covid

How to run the models: Install requirements shared by all models:

pip install sklearn
pip install pandas
pip install matplotlib

*Note, we are using the PIP python library manager

Feedforward NN:

Requirements:
Python3 version 3.9.1 or later

pip install pytorch-lightning
python3 ./regression.py

Predictions will be written to Team7.csv.

Simple Autoregression:

Requirements:
Python3 version 3.9.1 or later
statsmodels version 0.12.1 or later

Run commands:

pip install statsmodels
./runSimple

*Note: statsmodels is a large library and could take some time to install

Predictions will be written to simpleAR_output.csv.

Vector Autoregression:

Requirements:
Python3 version 3.9.1 or later
statsmodels version 0.12.1 or later

Run commands:

pip install statsmodels 
./runVAR

Predictions will be written to VAR_output.csv.

LSTM:

Requirements:
Python3 version 3.9.1 or later
Pytorch version 1.8.1 or later
Jupyter-Notebook version 6.3.0 or later

Run commands:

pip install torch
jupyter-notebook lstm.ipynb

After opening the Jupyter Notebook just run all the cells.

Predictions will be written to submission.csv.

Mape Scores (Kaggle Submission)

Neural Network: 1.158
Autoregression: 1.240
Vector Autoregression: 1.445
LSTM: 5.980

cs145covid's People

Contributors

jhuang2001 avatar alanguan98 avatar mhnnlly avatar mrcolo avatar

Stargazers

Jerryfan avatar

Watchers

 avatar  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.