Giter Club home page Giter Club logo

healthcare-sector-predictions-based-on-covid-sentiment-analysis's Introduction

Healthcare-Sector-Predictions-Based-on-COVID-Sentiment-Analysis

The Project of Predictive Analytics 2022 Summer

How to run:

Run the Main.ipynb file using jupyter notebook.

Packages:

Make sure you have install yfinance, pandas, numpy, seaborn, matplotlib.pyplot, sklearn and lightgbm packages before run the code.

The main code:

  • Main.ipynb: The main code of this project. It will import the Yahoo finance data(import by API), import the Twitter data(output_percent.csv) and merge them into merged data. Preprocessing every dataset, predict with different Machine Learning models and generate the prediction result(accuracy, precision, recall and f1-score).

Twitter Data Preprocessing:

  • Raw Twitter Data: This file is too large (5GB+), we only contain the preprocessed dataset(output_precent.csv). You can download it by this link.

  • TwitterDataPrepare.ipynb: Input is the Raw Twitter data. Merge the same day data into one row, delete the weekend(no weekend stock price) and convert the number of sentiment into percentage. Because the Raw Twitter Data is too large(5GB+) and we have preprocessed it, you do not need to run this file. If you want to run it, please download the Raw Twitter Data by the link above.

  • output.csv: The result of merging the same day raw Twitter data into one row.

  • output_without_weekend.csv: The result of deleting the weekend(no weekend stock price).

  • output_percent.csv: The result of converting the number of sentiment into percentage. We use this data as the preprocessed twitter data in Main.ipynb file.

healthcare-sector-predictions-based-on-covid-sentiment-analysis's People

Contributors

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