Coder Social home page Coder Social logo

lucas-lfp / heart-shaped-box__machine-learning-svm-classifier Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 7.55 MB

Developpement of a machine learning model (SVM classifier) for cardiovascular disease prediction. Deployed on a streamlit app.

Home Page: https://lucas-lfp-hsb.streamlit.app/

Python 90.17% CSS 3.40% HTML 5.85% Dockerfile 0.57%
cardiovascular-diseases data-science data-visualization life-sciences machine-learning streamlit-webapp svm-classifier

heart-shaped-box__machine-learning-svm-classifier's Introduction

Heart Shaped Box - SVM Classifier for Cardiovascular Diseases Detection

Overview

This project focuses on the development of a Support Vector Machine (SVM) classifier for the detection of cardiovascular diseases. The SVM model achieved an accuracy of 73.6% and is deployed on a Streamlit app, allowing users to test it with their own data. Model was deployed on a Streamlit app, with two main functionnalitites:

  • User can browse through a collection of dataviz to gain relevant insight on adult population characteristics, regarding cardiovascular diseases.
  • User can test the model with their own data to gain insight on their cardiovascular status.

--> Visit the streamlit app.

Objectives

  • To understand the relationships between clinical features and, particularly, their connection to the target feature through relevant visualisations.
  • To find a suitable machine learning model for this application
  • To evaluate the impact of hyperparameters on the model's performances
  • To put the model into production so it can treat user's input

Skills Used in This Project

  • Project was developped in Python, using HTML/CSS for formatting.
  • Libraries used in this project: Pandas, NumPy, SciPy, Matplotlib, Seaborn, Scikit-learn, joblib, streamlit.

Method

Development of this application was made following a four-steps plan, as described below.

  1. Data Analysis

  2. Model Selection - Several models were evaluated on this dataset: Logistic Regression, Random Forest, Support Vector Machines, K-Nearest Neighbors and AdaBoost. Support Vector Machines was selected for this project, as it presented the best accuracy (73.2%), a good rate of correct predictions for Class 0 (77.6%) and an acceptable rate for Class 1 (68.8%).

  3. Hyperparameter Tuning - SVM model was tuned to improve its performances, several combinations of kernel, C and gamma were tested. RBF kernel, with C = 0.1 and gamma = 10 led to good and balanced performances, and was the best combination for a high recall without a significant loss in accuracy.

  4. Deployment

Results

  • SVM Classifier Accuracy: 73.6%.
  • Relevant insights gained on adult population with cardiovascular disease.

heart-shaped-box__machine-learning-svm-classifier's People

Contributors

lucas-lfp avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.