Data analysis and Machine Learning models to predict heart disease
A python3 program which used data analysis techniques to observe trends between various risk factors for heart diseases. Then, machine leaning models were created to predict whether a person has heart disease based on those risk factors. See my findings here!
Setup
Installation
- Install
Python 3.7
or above. - Install these modules:
- NumPy
- pandas
- matplotlib
- seaborn
- scikit-learn
Running the program
- Download the
cleveland.csv
file andheart_disease.py
files. - Place them inside the same folder.
- Open the aforementioned folder in your terminal (for MacOS and Linux) or command prompt (for Windows).
- Type
python heart_disease.py
and press enter to run the program.
OR
- Install any IDE.
- Create a new project, copy the
heart_disease.py
code and paste it in a.py
file. - Run the program.
Models used:
Contributing
Pull requests are welcome for adding more ML models or fixing exisiting issues.