Giter Site home page Giter Site logo

joekimga / stroke_analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from betsyjames/stroke_analysis

0.0 1.0 0.0 3.39 MB

Machine Learning project that predict a user's stroke risk using a Tableau Dashboard. Python in Pandas, with Jupyter Notebook were used to clean and model the data. Tabpy was used to link the Jupyter Notebook to the Tableau Dashboard.

Jupyter Notebook 100.00%

stroke_analysis's Introduction

Stroke Analysis

Background: According to the CDC (https://www.cdc.gov/stroke/facts.htm), 1 in 6 cardiovascular disease related deaths are due to stroke. Someone dies of stroke every 4 minutes, and billions are spent on health care costs related to stroke each year.

This Dashboard shows the Stroke Mortality Rate by Race/Ethnicity and Gender.

Our goal was to create a machine learning model that would predict the likelihood of stroke based on a given set of parameters, including known risk factors. We used the stroke prediction dataset from Kaggle (https://www.kaggle.com/fedesoriano/stroke-prediction-dataset) to examine possible models. Using pandas in jupyter notebooks, we evaluated the following models: KNN, Random Forest, Logistic Regression, SVM, Decision Tree, Gaussian Naive Bayes, Neural Networks, and Gradient Boosting. Jupyter notebooks for each model can be referenced, as the names of the model correspond with what was examined inside of the notebook. We ultimately selected the Gaussian Naive Bayes model as our best performing model (GaussianNaiveBayes_FinalModel.ipynb).

The Dashboard below shows a comparison of Stroke and Non-Stroke Population Social Factors. image

Demographic characteristics effect on stroke is shown on the dashboard. image

This shows the medical characteristics that effect stroke. image

This Dashboard has a dropdown that helps predict the risk of getting a stroke. image

A tableau dashboard with a predictive questionnaire was created based on our dataset and model (StrokePrediction.twbx). This connects to our Gaussian Naive Bayes Final Model jupyter notebook via a Tabpy server.

Instructions:

  1. Start Tabpy server(Use the command pip install tabpy-server in the command prompt to install the Tabpy and then type Tabpy to start the server)
  2. Start Jupyter notebook and run the GaussianNaiveBayes_FinalModel.ipynb, which is the jupyter notebook with the final model.
  3. Open up the Tableau workbook in Tableau Desktop and navigate to Help --> Setting and Performance ---> Manage External Service Conenction Type in the server as localhost and and port as 9004 and that is it, Tabpy is configured and you should able to run the predictive questionnaire dashboard

stroke_analysis's People

Contributors

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