This repository contains code for a machine learning project focused on classifying breast cancer using Support Vector Machine (SVM) with hyperparameter tuning. The project utilizes the Breast Cancer Wisconsin (Diagnostic) Dataset, implementing GridSearchCV to optimize the SVM model's performance.
main.py
: python file containing the code for the project.README.md
: This file providing an overview of the project.
The dataset used in this project is the Breast Cancer Wisconsin (Diagnostic) Dataset, which contains features computed from a digitized image of a fine needle aspirate (FNA) of a breast mass. The dataset includes features describing characteristics of cell nuclei present in the image.
- Python 3.x
- scikit-learn
- Jupyter Notebook
- Clone the repository:
git clone https://github.com/abhipatel35/SVM-Hyperparameter-Optimization-for-Breast-Cancer.git
- Navigate to the project directory:
cd breast-cancer-svm
- Install dependencies:
pip install -r requirements.txt
- Open and run the 'main.py' python file in Jupyter Notebook or PyCharm.
- The initial SVM model performance is evaluated without hyperparameter tuning.
- GridSearchCV is employed to optimize SVM hyperparameters (C, gamma, kernel).
- Model performance is compared before and after hyperparameter tuning using metrics like classification reports.