Code Monkey home page Code Monkey logo

sc1015_project's Introduction

SC1015 Project (Group 5)

Written below is the overall flow of our presentation and an overview of our work. More details can be found in the comments in our notebook and we talk through our whole process in our video presentation.

Problem Statement

Our project aims to see if machine learning algorithms can accurately predict for cardiovascular disease and tell us what are the factors that contribute most to the presence of cardiovascular disease.

The dataset that we used was this

Data Preparation

We applied outlier removal and one hot encoding on our dataset

Details can be found in our ipynb notebook and explanation in our presentation video

Exploratory Data Analysis

We utilized methods we learnt during the Data Science section of the course to observe any distinctive patterns across the 2 different cardio classes

From observation, we were able to come up with some hypothesis that certain variables will play a bigger role in determining for the presence of cardiovascular diseases compared to other variables.

We carried out these operations for both continuous and discrete variables.

Machine Learning Algorithms / Hyperparameter Tuning

We used a total of 5 algorithms as listed in our presentation.

For our training, we carried out a nested cross validation.

This helped our model to see a more diverse combination of data and helped eliminate any potential overfitting and information leakage during hyperparameter tuning.

We also showcased the accuracy metric for the models we decided to use

Insights

We observed the feature importances of our trained and tuned models to check our initial hypothesis formed from our EDA to decide which features play a role in determining for cardiovascular disease.

Additionally, we also look at the confusion matrix and realize that our models have further room for improvement.

Machine Learning models used

  • Logistic Regression
  • Decision Tree Classifier
  • Random Forest Classifier
  • XGBClassifier
  • KNeighborsClassifier

Conclusion

We can conclude that people who are older, with higher cholesterol and higher blood pressure should take measures early to prevent cardiovascular disease.

What we learned

Hyperparameter Tuning

Nested Cross Validation

Different models such as XGBClassifier and KneighborsClassifier

How to infer feature importances from models and their significance to our project

sc1015_project's People

Contributors

vanilladucky avatar

Watchers

 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.