A simple and effective breast cancer prediction app powered by a Logistic Regression model and built with Streamlit. This project leverages the Breast Cancer Wisconsin (Diagnostic) Dataset to classify tumors as benign or malignant based on features derived from digitized images of fine needle aspirates (FNA) of breast masses.
P.S. - If the app site is down, kindly ping me on joeducer.official@gmail.com
This project is divided into two main components:
- Model Building (Backend)
- Frontend Deployment using Streamlit
- Clean preprocessing of breast cancer data.
- Logistic Regression model trained on labeled data.
- Real-time prediction using a saved model and scaler via Pickle.
- Minimal and responsive frontend using Streamlit.
- Input sliders to adjust sample parameters dynamically.
- Final prediction with visual feedback for users.
- Name: Breast Cancer Wisconsin (Diagnostic) Data Set
- Source: UCI Machine Learning Repository
- Target Labels:
M: MalignantB: Benign
| Component | Technology |
|---|---|
| Model | Logistic Regression (Sklearn) |
| Data Handling | Pandas, NumPy |
| Deployment | Streamlit |
| Serialization | Pickle |
| Visualization | Plotly |
- Preprocesses and cleans the dataset.
- Trains a
LogisticRegressionclassifier. - Applies
StandardScalerfor normalization. - Saves both model and scaler using
pickle.
- Streamlit app reads the saved model and scaler.
- Takes user input from sidebar sliders.
- Scales input and predicts the tumor class.
- Displays results and a confidence score visually.
👉 Try the live app here:
🔗 Cancer Prediction App on Streamlit
