Coder Social home page Coder Social logo

buffless24 / breastcancer-analysis-and-prediction Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 14.61 MB

Data analysis, visualization and prediction to predict whether a patient has benign or malignant breast cancer based on properties of the cancer

Jupyter Notebook 100.00%
data-science machine-learning machine-learning-algorithms random-forest decision-tree-classifier decision-trees data-visualization data-analysis dataset roc-auc-curve breast-cancer-prediction smote-algorithm label-encoder prediction-model

breastcancer-analysis-and-prediction's Introduction

BreastCancer-Analysis-and-Prediction

Dataset: https://www.kaggle.com/uciml/breast-cancer-wisconsin-data

About the Dataset:

About this Kernel The Breast Cancer datasets is available UCI machine learning repository maintained by the University of California, Irvine. The dataset contains 569 samples of malignant and benign tumor cells.

The first two columns in the dataset store the unique ID numbers of the samples and the corresponding diagnosis (M=malignant, B=benign), respectively.

The columns 3-32 contain 30 real-value features that have been computed from digitized images of the cell nuclei, which can be used to build a model to predict whether a tumor is benign or malignant.

1= Malignant (Cancerous) - Present (M) 0= Benign (Not Cancerous) -Absent (B)

Ten real-valued features are computed for each cell nucleus:

radius (mean of distances from center to points on the perimeter) texture (standard deviation of gray-scale values) perimeter area smoothness (local variation in radius lengths) compactness (perimeter^2 / area - 1.0) concavity (severity of concave portions of the contour) concave points (number of concave portions of the contour) symmetry fractal dimension ("coastline approximation" - 1) The mean, standard error and "worst" or largest (mean of the three largest values) of these features were computed for each image, resulting in 30 features. For instance, field 3 is Mean Radius, field 13 is Radius SE, field 23 is Worst Radius

What we wanted to do

In this project we wanted to analyze the dataset and then have the possibility to predict whether a person has had benign cancer or a benign cancer based on the properties of the cancer. To do this we decided to use two ML Models and then compare them and see which of the two was the best Decision Tree (default and tuned parameters) Random Forest (default and tuned parameters)

Structure of the project: Read and Correct the dataset -> Data Observation -> Execute ML models -> Comparisons

Results

AUC Values

image

Comparison between the two models

image

Conclusions

At the end of the project we can say that these two algorithms can predict quite well who has had benign cancer or malignant cancer. But the RandomForest performed slightly better than the DecisionTree

NB: see the .ipynb file for full report with some explanations and the results of each model with and without tuning of the hyperparameters and .pdf file for a simple presentation of the work

Work done by:

All work was done by both of us, every piece of code and every output was written, edited and supervised by both. This report was also drawnup together.

breastcancer-analysis-and-prediction's People

Contributors

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