Skip to content

Utilizing SVM for breast cancer classification, this project compares model performance before and after hyperparameter tuning using GridSearchCV. Evaluation metrics like classification report showcase the effectiveness of the optimized model.

abhipatel35/SVM-Hyperparameter-Optimization-for-Breast-Cancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Breast Cancer Classification with SVM Hyperparameter Tuning

Overview

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.

Project Structure

  • main.py: python file containing the code for the project.
  • README.md: This file providing an overview of the project.

Dataset

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.

Dependencies

  • Python 3.x
  • scikit-learn
  • Jupyter Notebook

Usage

  1. Clone the repository:
    git clone https://github.com/abhipatel35/SVM-Hyperparameter-Optimization-for-Breast-Cancer.git
  2. Navigate to the project directory:
    cd breast-cancer-svm
  3. Install dependencies:
    pip install -r requirements.txt
  4. Open and run the 'main.py' python file in Jupyter Notebook or PyCharm.

Results

  • 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.

About

Utilizing SVM for breast cancer classification, this project compares model performance before and after hyperparameter tuning using GridSearchCV. Evaluation metrics like classification report showcase the effectiveness of the optimized model.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages