This project uses a Support Vector Machine (SVM) with an RBF kernel to classify tumors as malignant or benign using the Breast Cancer Wisconsin Dataset. It includes scaling, cross-validation, and hyperparameter tuning with different regularization strengths (C values).
- Loads the
breast_cancerdataset fromsklearn.datasets - Scales features using
StandardScaler - Trains an SVM classifier with RBF kernel
- Performs 5-fold cross-validation
- Evaluates accuracy across different
Cvalues - Visualizes performance trends to choose the best
C
The notebook generates a plot showing:
- Mean cross-validation accuracy
- Standard deviation of performance
- Behavior across different regularization strengths (log scale)
- Clone the repository:
git clone https://https://github.com/NoorNick/Breast-Cancer-Detection.git
cd Breast-Cancer-Detection
- Install dependencies:
pip install -r requirements.txt
- Launch Jupyter Notebook:
jupyter notebook
Open breast_cancer_svm.ipynb and run all cells.
Cross-validation scores: [0.9561 0.9649 0.9386 0.9649 0.9737]
Mean CV score: 0.960 (+/- 0.025)
Support early detection. Classify responsibly. ποΈ