Git Product home page Git Product logo

breast-cancer-classification's Introduction

breast-cancer-classification

Background

Breast cancer is a major health concern that affects millions of people around the world. Early detection and accurate diagnosis are critical for successful treatment of breast cancer. Medical imaging technology has become an important tool in the detection and diagnosis of breast cancer. In recent years, machine learning algorithms have been increasingly used to analyze medical images and assist in the diagnosis of breast cancer.

tldr;

In this project, I have used features of tumors and Support Vector Machine (SVM) to classify tumors into malignant or benign.

About the dataset

In the dataset, there are 32 features with 569 datapoints. The target variable of this data is "diagnosis", and it consists of either "M" which stants for Malignant and "B" which stands for Benign.

Evaluation

  • Linear SVM yielded an accuracy of 94%, weighted average precision of 94%, and weighted averaged recall of 94%.
  • Scaling using StandardScalar improved the model as the accuracy, weighted average precision, and the weighted average recall all increased to 98%.
  • To further increase the accuracy, I ran a Poly SVM and a RBF SVM.
    • Poly SVM: I chose gamma to be 30, C to be 1. Accuracy was 92%, weighted average precision of 97%, and weighted average recall of 96%.
    • RBF SVM: I chose gamma to be 0.01, C to be 1. Accuracy, weighted average precision and weighted average recall all yielded 99%.
  • The highest score of my parameter search is 98% when C= 5 and kernel is Linear

breast-cancer-classification's People

Contributors

takeachangs avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.