https://archive.ics.uci.edu/ml/datasets/Hepatitis
• This repository consists of files required to deploy a Machine Learning Web App created with Flask and StreamLit .
- Predict if a patient will live or die based on the parameters using Machine Learning.
- Data Prep
- EDA
- Feature Selection
- Build Model
- Interpret Model
- Serialization
- Productionize with Streamlit and Flask
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:
- For example I can create a new environment called Blablabla with python version 3.6
conda create -n Blablabla python=3.6
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
- cd into my_flask_app folder then try the code below
python app.py
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.
- 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.
- 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 😉
- 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.