Coder Social home page Coder Social logo

cchandel-dev / fetal-health-classifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 125.11 MB

Using various Machine Learning models and amalgamating them into an Ensemble Learning model to classify fetal health and evaluate the results. The following algorithms were used; Random Forest, Decision Tree, KNN, SVM, Naive Bayes.

Jupyter Notebook 0.06% Python 95.29% Cython 3.46% C 0.70% C++ 0.26% Shell 0.01% Batchfile 0.01% HTML 0.07% JavaScript 0.04% CSS 0.01% Lua 0.01% Fortran 0.07% Forth 0.01% Smarty 0.01% XSLT 0.01% Roff 0.01% VBScript 0.01% Classic ASP 0.01% PowerShell 0.02%
ensemble-learning machine-learning python scikit-learn

fetal-health-classifier's Introduction

Fetal Health Classification

Using various Machine Learning models and amalgamating them into an Ensemble Learning model to classify fetal health and evaluate the results. The following algorithms were used; Random Forest, Decision Tree, KNN, SVM, Naive Bayes.

Steps to use this program are shown below.

  1. clone this repo to your local workspace
  2. in your command terminal either enter the virtual environment provided or make
      your own and install everything in requirements.txt
  3. feel free to run the EnsembleLearning.py or any of the constituent model generators 

Description of the selected forecasting problem: Using data on fetal health the goal is to forecast the health of the given fetus into three categories; normal(1), suspect(2), or pathological(3). This is a classic classification problem where data is used to group the output into types as opposed to regression where a numerical value(s) is/are calculated.

Description of the available data: There are 21 attributes which can be used to forecast the output which is the 22nd field. There are 2126 samples taken in this dataset providing a healthy sample size for the classification algorithms we are looking to work with today. The 21 attributes are all numerical, even if they describe categorical data meaning that the dataset was already vectorized. This dataset is not normalized, the methods we use will have to be able to deal with unnormalized data or we will have to normalize the dataset if necessary. There is no missing data in the dataset. Every attribute and typically 80% of the samples will be used to train the model (train_X & train_Y). The model will be tested using typically 20% of the samples and every attribute except the output (text_X) and compared to the true output (test_Y). This 80/20 split will apply to both cross-validation and hold-out as shown later on in this report.

The classification report is shown below

classification repot

fetal-health-classifier's People

Contributors

cchandel-dev 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.