Giter Club home page Giter Club logo

helloai19 / breast-cancer-prediction-using-machine-learning-various-algorithms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iamsuvhro/breast-cancer-prediction-using-machine-learning-various-algorithms

1.0 0.0 0.0 565 KB

In this tutorial, i will apply a bunch of various Machine Learning Algorithms on the Breast Cancer Dataset and see how each of them behaves with respect to one another.

License: MIT License

Jupyter Notebook 99.50% Python 0.50%

breast-cancer-prediction-using-machine-learning-various-algorithms's Introduction

Breast Cancer Wisconsin (Diagnostic) Prediction

Predict whether the cancer is benign or malignant

Status npm

Features are computed from a digitized image of a fine needle aspirate (FNA) of a breast mass. They describe characteristics of the cell nuclei present in the image. n the 3-dimensional space is that described in: [K. P. Bennett and O. L. Mangasarian: "Robust Linear Programming Discrimination of Two Linearly Inseparable Sets", Optimization Methods and Software 1, 1992, 23-34].

This database is also available through the UW CS ftp server: ftp ftp.cs.wisc.edu cd math-prog/cpo-dataset/machine-learn/WDBC/

Also can be found on UCI Machine Learning Repository: https://archive.ics.uci.edu/ml/datasets/Breast+Cancer+Wisconsin+%28Diagnostic%29

In this repository i will trained lots of Machine learning algorithm from scratch to find which will be the best Algorithm for this dataset.I did bunch of research for analysing this dataset in my main file that is ipython notebook you will see lots of analysis i did using seaborn library in python. seaborn is really a best python library for data visualization.

Attribute Information:

1) ID number 2) Diagnosis (M = malignant, B = benign) 3-32)

How to use

  1. Clone the repo
git clone https://github.com/suvhradipghosh07/Breast-Cancer-prediction-using-Machine-Learning-various-Algorithm.git
  1. cd to the repo
cd Breast-Cancer-prediction-using-Machine-Learning-various-Algorithm
  1. Start Main file
python3 _main_.py 

Have fun!

Random Forest Algorithm

#define the algorithm class into the algo_one variable
algo_one=RandomForestClassifier()
algo_one.fit(x_train,y_train)
#predicting the algorithm into the non trained dataset that is test set 
prediction = algo_one.predict(x_test)
metrics.accuracy_score(prediction,y_test)

0.956140350877193

Observation


Here are the results of our Five Algorithm observation
Model Algorithm Test Accuracy
Model 1 Random Forest Algorithm 95%
Model 2 SupportVector Machine Algorithm (SVM) 90%
Model 3 Decision Tree Classifier Algorithm 92%
Model 4 K-Nearest NeighborsClassifier Algorithm 94.7%
Model 5 GaussianNB Algorithm 93.8%

breast-cancer-prediction-using-machine-learning-various-algorithms's People

Contributors

iamsuvhro avatar

Stargazers

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