Skip to content

code-JOA/Predicting_Hepatitis_Mortality_Rate

Repository files navigation

Predicting HepatitisB Mortality Rate.

Author : Joshua Owusu Ankomah.

DataSource : UCI Machine Learning Reporsitory.

https://archive.ics.uci.edu/ml/datasets/Hepatitis

UCI Python 3.6 scikit-learnn

• This repository consists of files required to deploy a Machine Learning Web App created with Flask and StreamLit .

Deliverables:

  • Predict if a patient will live or die based on the parameters using Machine Learning.

Workflow.

  • Data Prep
  • EDA
  • Feature Selection
  • Build Model
  • Interpret Model
  • Serialization
  • Productionize with Streamlit and Flask

End-to-end Workflow.

Installation.

The Code is written in Python 3.6. However ,version 3.7 is also supported by the modules. If you don't have Python installed you can find it here. If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after cloning the repository:

Create a new environment to avoid clashes or errors.

  • For example I can create a new environment called Blablabla with python version 3.6
conda create -n Blablabla python=3.6

To activate the environment.

conda activate Blablabla
  • next you can use pip freeze to get the libraries I have used in this project
  • or you can use pip freeze > requirements.txt before typing in the code below
pip install -r requirements.txt

To run the flask App on your local machine.

  • cd into my_flask_app folder then try the code below
python app.py

Disclaimer :

Since this is a health APP , I emulated a real life programme in a hospital where an employee will login to the StreamLit APP before given access to patient information. This follows the GDPR rules of Protecting client data. Hence patient confidentiality. However ,the flask APP does not prior registration to login.

The App's Interface (wireframe 1).

wireframe 2 - Select features.

wifreframe 3 - Prediction.

About APP

  • I built the APP using Streamlit - Check out the APP in my_app folder.
  • Same APP has been built using flask from end to end in the my_flask_app folder.

Additional information - Docker video from Krish Naik

  • I also created a docker container for the APP after watching this amazing tutorial from Krish Naik . You can find it in his docker playlist here

Version Control: One and only GitHub ❤️

Language for this project: Python

Please feel free to keep in touch if you have any queries or would like us to work together on a fun project 😉

Connect with me

Acknowledgement

  • My Data Science journey could not have manifested without my good friends Gyesi , Johnny Parker, Krish Naik, Jiwitesh , Ashray Shetty , Andrie Neagaie , Daniel Bourke , Ken Gee and the whole iNueron support team.

Thank you.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages