This repository creates a Data Web App about safe water for human consumption by using Streamlit Python Package. More specifically, it allows its users to change the values of the nine predictor variables:
- pH
- Hardness
- Solids
- Chloramines
- Sulfate
- Conductivity
- Organic_carbon
- Trihalomethanes
- Turbidity
trains a Random Forest Classifier model and, finally, observe the prediction of the trained model.
The imported csv file contains water quality metrics for 3276 different water bodies.
- First, we create a virtual Python environment called my_venv
python3 -m venv my_venv
- Then, we activate the virtual environment
source path_to_your_virtual_environment/bin/activate
- After getting to the virtual environment's file, install prerequisite packages
wget https://raw.githubusercontent.com/GeorgiosDolias/WaterPotability/main/requirements.txt
and
pip install -r requirements.txt
- Dowload and unzip contents from Github repo
Dowload and unzip contents from https://github.com/GeorgiosDolias/WaterPotability/archive/main.zip
- Launch the app
streamlit run WaterPotApp.py
Package | Version |
---|---|
streamlit | 0.87.0 |
pandas | 1.1.3 |
sci-kit learn | 0.23.2 |
numpy | 1.19.1 |