DishaMondal2024/pcos_predictor
0
PCOS Prediction Web App
This repository hosts a web-based application for predicting Polycystic Ovary Syndrome (PCOS) using clinical and lifestyle data. The app is powered by Streamlit and deployed on Hugging Face Spaces.
๐ Live Demo
Access the live app here: PCOS Predictor on Hugging Face
๐ About the Application
The PCOS Predictor allows users to input various clinical and lifestyle factors to determine the likelihood of PCOS. It utilizes a Logistic Regression model trained on a comprehensive dataset from Kaggle.
Features:
- Interactive and user-friendly interface
- Prediction based on clinically relevant parameters
- Clear results indicating the likelihood of PCOS
๐ข Model Information
- Algorithm: Logistic Regression
- Pipeline:
- Categorical data preprocessing: OneHotEncoder
- Numerical data preprocessing: StandardScaler
- Classifier: Logistic Regression with optimized hyperparameters
- Hyperparameters:
- Regularization (
C): 0.1 - Penalty:
l2 - Solver:
liblinear
๐งพ Dataset Information
The model was trained on the Polycystic Ovary Syndrome (PCOS) dataset available on Kaggle:
- Author: Prasoon Kottarathil
- Title: Polycystic ovary syndrome (PCOS)
- Year: 2020
- Publisher: Kaggle
- Dataset Link: PCOS Dataset
๐ Repository Structure
app.py: Streamlit application scriptmodel.pkl: Pre-trained Logistic Regression modelrequirements.txt: Dependencies for the applicationREADME.md: Documentation file (this file)
๐ ๏ธ How to Run Locally
- Clone the repository:
git clone https://huggingface.co/spaces/DishaMondal2024/pcos_predictor
cd pcos_predictor- Install dependencies:
pip install -r requirements.txt- Run the application:
streamlit run app.py- Open the link provided by Streamlit (e.g.,
http://localhost:8501) to interact with the app.
๐ License
This project is licensed under the MIT License.
๐ Acknowledgements
Special thanks to Prasoon Kottarathil for providing the dataset that made this project possible.
