Giter Site home page Giter Site logo

heart-disease-web-application's Introduction

Heart-Disease-Web-Application

Repo Size License Code Quality Forks Stars

A data web application to predict heart disease using Streamlit.

Data source

The data is taken from the UCI Machine Learning repository.

Heart Disease UCI dataset

These are the setup and concept instructions to be able to follow the project end to end.

Software instructions

  • Ensure that you have Git installed on your system. Install instructions here
  • If you are using Git and/or Github for the first time, follow this guide to set up the CLI for Github
  • Ensure that Anaconda is installed on you system. You can check the setup instructions here
  • Ensure that you have Pip installed on your laptop. You can follow the instructions to install it after you have installed Anaconda. If you want to do it independently, use this.
  • Create an account on Heroku.
  • Install the Heroku CLI.

Setting up environment

Virtual Environment setup:

First you will create an Anaconda virtual environment. To do this first check whether your Conda CLI is working as intended.

$ conda --version

This should show something like:

conda 4.8.5

After this, create a new conda environment by:

$ conda create --name heart-disease-app

Or, you could follow the instructions mentioned here

Check the environment conda is using by:

conda env list

You should see the * next to heart-disease-app.

Pip setup:

Next, check whether pip is installed properly using:

$ pip3 --version

This will show something like:

pip 20.2.2 from /Users/Sayar/anaconda3/lib/python3.6/site-packages/pip (python 3/6)

Heroku setup:

Lastly, ensure Heroku CLI is working properly:

$ heroku --version

Should show something like:

heroku/7.42.5 darwin-x64 node-v12.16.2

Ensure that your Heroku CLI is using the correct account:

$ heroku login

This will prompt you to press any key after which a tab will open on your browser via which you have to authenticate your account. Once this is done, you should see the confirmation of the account display on your terminal with the correct email id.

Clone repository and install dependencies:

Next, clone this repository into your local machine using:

$ git clone https://github.com/Sayar1106/Heart-Disease-Web-Application.git

Activate the virtual environment:

$ conda activate heart-disease-app

Next, install the requirements.txt in the cloned repository. cd into the source of the repository and do the following:

$ pip3 install -r requirements.txt

This should install all the required libraries for the workshop.

If you have reached this point you can wait until the workshop webinar.

Running the application

To run the application make sure you are in the project directory:

$ streamlit run app/app.py

This will either automatically open a new tab in the browser or will give you a link to paste onto the browser.

Deploying to Heroku

we will be doing this during the session.

Concepts to know before the workshop

Required:

  • Python and it's Data Structures.
  • Understanding of ML and Data Anlaysis.

Recommended:

  • Pandas
  • Numpy
  • Plotly
  • Scikit-learn

Optional

  • Shell

Choice of editor/IDE

I will be using Visual Studio Code for this project because they offer fantastic support for Python and for IPython Notebooks. I will be demoing code in both in an IPython Notebook as well as Python3.

You can install Visual Studio Code here

Feel free to submit pull requests or add issues to the project.

heart-disease-web-application's People

Contributors

sayar1106 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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