Giter Site home page Giter Site logo

15037046024 / breast-cancer-diagnosis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kwantommy/breast-cancer-diagnosis

0.0 0.0 0.0 5.96 MB

Breast cancer diagnosis using multiple statistical/machine learning techniques: XGBoost, support vector machine, random forest, k-neighbours, and deep learning

Jupyter Notebook 100.00%

breast-cancer-diagnosis's Introduction

Breast cancer diagnosis using statistical techniques in Python (Scikit-learn, XGBoost, Keras)

  • includes application of grid search, SMOTE sampling, and visualization using principal component analysis
  • data used is from UCI Machine Learning Repository

For most models, k-fold cross validation was performed with grid search to find optimal model parameters.

XGBoost

XGBoost, or extreme gradient boosting, is a top machine learning model and the dominating algorithm among competitions.

Test accuracy achieved with XGBoost

Example tree

Feature importance

Training/validation error

Training/validation loss

Random Forest Classifier

Test accuracy achieved with RFC

Example tree

Support Vector Machine

  • note PCA was used to bring dimensionality down to 2 in order to plot the hyperplane
  • support vector machines classifies models by finding a hyperplane to separate classes while maximizing the margin distance from the classes
  • as a distance based method, SVM requires data normalization to ensure no features take precendence over others
  • documentation at https://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html#sklearn.svm.SVC

Accuracy achieved with SVM

Linear decision boundary

Radial basis function decision boundary

K-Neighbours

Accuracy achieved with KNC

Nearest neighbours classification plot

Deep Learning

  • simple deep learning model used with residual connections similar to Resnet v1 to ensure "deep" networks train, at a minimum, as well as "shallow" networks
  • the goal of deep learning is to calculate weights and biases within the network using gradients and error functions
  • documentation at https://keras.io/

Model

Oversampled results

Non-oversampled results

breast-cancer-diagnosis's People

Contributors

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