Coder Social home page Coder Social logo

dm847's Introduction

DM847

Overview

Our task was to implement a Random Forest algorithm on the samples measured at Odense University Hospital. We've chosen R language for this project.

Workflow

  1. Install all necessary libraries
  2. Load all packages
  3. Load raw measured data
  4. Run PEAX on data to generate peaks of use our premeasured data (DEBUG has to be TRUE)
  5. Load the peaks and calculate the best cluster number
  6. Apply k-means on the dataset
  7. Build training matrix
  8. Split data in ratio 75%-25% for train and test
  9. Apply randomForest
  10. Run 5-fold cross validation
  11. Report mean accuracy, sensitiviry and specificity
  12. Apply gini index and pick top 5 peaks
  13. Extract decision tree with the best peaks
  14. Load and build training matrix for unlabeled data
  15. Apply the decision tree on the unlabeled data set

How to run

  1. Open the exam.R
  2. Load exam_workspace.R (if you want to see the best best result)
  3. Run the script (everything is automated)

Current status & decision tree

With the current solution by average we have 0 or 1 mismatches.

Decision tree

Other

Quick link to exam.

dm847's People

Contributors

iustin94 avatar matq007 avatar

Watchers

 avatar  avatar

Forkers

matq007

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.