Giter VIP home page Giter VIP logo

breast-cancer-neural-networks's Introduction

Breast Cancer Classifier using Logistic Regression

This code helps you classify malignant and benign tumors using Neural Networks.

Code Requirements

The example code is in Matlab (R2016 or higher will work).

Description

An ANN is based on a collection of connected units or nodes called artificial neurons (analogous to biological neurons in an animal brain). Each connection (synapse) between neurons can transmit a signal from one to another. The receiving (postsynaptic) neuron can process the signal(s) and then signal downstream neurons connected to it. In common ANN implementations, the synapse signal is a real number, and the output of each neuron is calculated by a non-linear function of the sum of its input. Neurons and synapses may also have a weight that varies as learning proceeds, which can increase or decrease the strength of the signal that it sends downstream. Further, they may have a threshold such that only if the aggregate signal is below (or above) that level is the downstream signal sent.

For more information, see

Some Notes

  1. Dataset- UCI-ML
  2. I have used 30 features to classify
  3. Instead of 0=benign and 1=malignant, I have used 1=benign and 2=malignant

Accuracy ~ 92%

Working Example

Execution

To run the code, type run cancer.m

run cancer.m

Python Implementation

Used a shallow neural net with one hidden layer and 20 units.

I have used a linear learning rate decay for decreasing cost without overshooting the minima.

  1. Dataset- UCI-ML
  2. I have used 30 features to classify
  3. Instead of 0=benign and 1=malignant, I have used 1=benign and 2=malignant

Acuracy ~ 94%

Execution

To run the code, type python B_Cancer_nn.py

python B_Cancer_nn.py

breast-cancer-neural-networks's People

Contributors

akshaybahadur21 avatar

Watchers

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