Code Monkey home page Code Monkey logo

heart_stroke_classification's Introduction

heart_stroke_classification

Attempt to predict heart stroke by using models from sklearn and using keras

In this case we have dataset with 5110 patient records, but only 5% of them diagnosed as a heart attack.

The best results we achived using sofisticated method to replicate data (SMOTE) for minority class and neural network, built with:

  • 2 dense layers with 1024 and 256 units,
  • dropout layer (rate 0.1) and batchnormalization after each dense layer,
  • dense layer with 2 units and softmax activation layer as an output,
  • binary_crossentropy loss function,
  • Adam Optimizer with learning rate = 0.0001

Our model results is:

88% accuracy in general, 93% precision for class 0 (No heart attack) and 83% for class 1, 81% recall for class 0 and 94% of class 1

Our results tell us that final model can detect 83% of heart attacks, classifing correctly each patient with symphtoms as a potential heart attack with 94% probability (recall). Kaggle competition worksheet link

heart_stroke_classification's People

Contributors

dtararuj avatar

Stargazers

 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.