Project for the Open Source Programming course, to predict whether a person is susceptible to heart disease or not
- Golang: The primary programming language for building the application
- Python3: Utilized for implementing the decision tree logic
- Redis: Employed with celery to distribute tasks and manage queues
- MySQL: Used for database storage and retrieval
- Celery: Task queue management to enhance performance and scalability
To get started with the Heart Disease Risk Predictor, follow these steps:
- Clone the project repository and redirect to the cloned repo
git clone https://github.com/yourusername/HeartRiskPredictor.git
cd heart-disease-predictor
- Install project dependencies:
go get -d ./...
- Run the executable located in the executable folder depending on your operating system (Windows/Linux_x64)
- For Windows users, execute heart-predictor.exe
- For Linux (x64) users, run heart-predictor
- Decision tree logic implemented
- Using Celery with Redis to distribute tasks and maintain queue
- To validate user input
- Make REST interface indepenent from ML code, for future purposes
Sample Request Body
{
"name":"Reejh Ghosh",
"age":43.0,
"sex":1,
"cp":0,
"trestbps":120,
"chol":177,
"fbs":0,
"restecg":0,
"thalach":120,
"exang":1,
"oldpeak":2.5,
"slope":1,
"ca":0 ,
"thal":3
}Sample Response
{
"Name": "Reejh Ghosh",
"Label": 0,
"Date": "2018-09-17T10:08:31.679127494+05:30"
}If you'd like to contribute to the project, please follow these steps:
- Fork the repository: Click the "Fork button on the repository page to create your own fork
- Clone your fork: Clone your forked repository to your local development environment
- Make Changes: Make your changes, commit them, then push to your fork
- Create a Pull Request: Visit the repository on GitHub and create a new pull request with a detailed description of all changes.

