/KNN-RandomForest

Heart disease predictor using K Nearest Neighbour and Random Forest algorithm in Python

Primary LanguagePython

Heart Disease Predictor

Heart disease predictor is a simple Machine learning based project. Data is collected from UCI repository of PC Hospital. Dataset contains 13 different attributes like age, sex, cp, chol etc. Missing datas are completed by using median of it's row. Then, we applied KNN and Random Forest algorithm in those dataset to obtain the accuracy.

Dependencise

-cycler==0.10.0
-kiwisolver==1.0.1
-matplotlib==2.2.2
-numpy==1.14.3
-pandas==0.23.0
-pkg-resources==0.0.0
-pyparsing==2.2.0
-python-dateutil==2.7.3
-pytz==2018.4
-scikit-learn==0.19.1
-scipy==1.1.0
-six==1.11.0
-sklearn==0.0

Installation Steps

$ git clone https://github.com/upakarp/KNN-RandomForest.git
$ Set up virtual environment (python -m venv env_name)
$ Run virtual environment (source env_name/bin/activate)
$ Install dependencies (pip install -r requirements.txt)
$ Run project (python gui.py)