Skip to content

An example of predicting breast cancer using existing data to learn with decision trees (scikit-learn/python)

Notifications You must be signed in to change notification settings

manjunath-satyamurthy/decision-trees-cancer-prediction-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

decision-trees-cancer-prediction-

An example of predicting breast cancer using existing data to learn with decision trees (scikit-learn/python)

WORKING

The collected data sample has been divided into test and training samples. Using the scikit's decision tree generator and the traning set, is used to generate a tree based on ID3.

The test data can then be used to cross verify the accuracy of the tree generated.

This small program also generates a pdf to visualize the generated tree.

NOTE

This program is only for demonstration/experimentation purposes ONLY.

Below are the dependencies

python numpy scipy scikit-learn pydotplus graphviz

INSTRUCTIONS

install python version 2.7

to install the above packages, follow the commands below

pip install numpy

pip install scipy

pip install scikit-learn

pip install pydotplus

#NOTE pip has to be installed to use these commands (For installation, please read instructions online)

#Note to install graphviz in ubuntu OS, follow the command below (For windows, please read instructions online)

sudo apt-get install graphviz

*END

About

An example of predicting breast cancer using existing data to learn with decision trees (scikit-learn/python)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages