A project to create a model and website that can predict whether a person has a heart defect based on several questions. The data used is questionnaire data obtained from Kaggle.
- Performing visualization and analysis of respondent's data.
- Perform data pre-processing (data cleaning).
- Creating a classification model using several algorithms (Naïve Bayes, Decision Tree, and Logistic Regression).
- Implementation and deployment of the model in the form of a website (check This Repo for the implementation)
At the beginning, you can clone this repository and you have to make sure that your machine has been installed with Python (3.11.4) and PIP (23.2.1). It is recommended for using virtual environment (venv). Inside the project you can do
python -m venv env
After that, make sure your env is active. Command bellow i used in windows terminal (cmd) for activing my environment
env\Scripts\activate
If your env is active, then you can install all depedencies from the requirements.txt
pip install -r requirements.txt
to use the project, you can execute the notebook file in the notebook folder.
jupyter notebook #run notebook
![](https://private-user-images.githubusercontent.com/76652264/257546406-03d9c620-5970-4064-9385-db7805326a66.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODc4NTgsIm5iZiI6MTcyNDg4NzU1OCwicGF0aCI6Ii83NjY1MjI2NC8yNTc1NDY0MDYtMDNkOWM2MjAtNTk3MC00MDY0LTkzODUtZGI3ODA1MzI2YTY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDIzMjU1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjY2QyNDMzN2QwMGRkNjc0NjI2ODhmYmZlNDcxZTUyNjMxYzdmMzBlMjc3ZmRjZmUzNjY2ZjhiZGJhOTRhMzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ty7geVgPH6yz89Ot-fRFB1DeIs-gIojA6IZq9IXOOOc)
![](https://private-user-images.githubusercontent.com/76652264/257546555-235aa21c-dbaa-40e4-bc4b-be6e1e9e9717.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODc4NTgsIm5iZiI6MTcyNDg4NzU1OCwicGF0aCI6Ii83NjY1MjI2NC8yNTc1NDY1NTUtMjM1YWEyMWMtZGJhYS00MGU0LWJjNGItYmU2ZTFlOWU5NzE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDIzMjU1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU0YjI4ODg0ZDM4MDZmN2Q0YTQwMDFmZDM4ODQ4NDZhYjgyMmQ2ZTlhYjkwNTVmYTUwMWEzM2UzNzEzNzUyNGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.boUO3V7g6oISm3x8I104HFmFNZp53AncRlHH-3n6v5A)
![](https://private-user-images.githubusercontent.com/76652264/257546738-0894b387-4765-48e8-adad-ea9d20a4ae3b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODc4NTgsIm5iZiI6MTcyNDg4N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