CoolFace
Apppublic

DishaMondal2024/pcos_predictor

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
App README

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 script
  • โ€”model.pkl: Pre-trained Logistic Regression model
  • โ€”requirements.txt: Dependencies for the application
  • โ€”README.md: Documentation file (this file)

๐Ÿ› ๏ธ How to Run Locally

  1. 1.Clone the repository:
bash
   git clone https://huggingface.co/spaces/DishaMondal2024/pcos_predictor
   cd pcos_predictor
  1. 1.Install dependencies:
bash
   pip install -r requirements.txt
  1. 1.Run the application:
bash
   streamlit run app.py
  1. 1.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.