Code Monkey home page Code Monkey logo

single-cell-expression-data-classification's Introduction

Machine Learning - single-cell expression data classification

This project was realised in an attempt to improve the results of a Machine Learning competition for the course LINGI2262 at UCLouvain. The competition consisted in training a model in order to

  • predict the label of unclassified data,
  • estimate the model's performance.

As preprocessing is a major part of a ML classification task, we spend the time to discuss and detail our different steps.

Here, we do not care about deploying the optained model (this could be an extension to this project).

The dataset

The data we worked with is called single-cell expression data. The original dataset contains high dimensional (23000+ features), sparse, imbalanced (85% vs 15%) data, containing missing values (~ 5% overall distribution) and both numerical and categorical features.

For copyright reasons, the dataset itself will not be disclosed.

The models

Different models were evaluated against each other

  • Multi-Layer Perceptron (MLP)
  • Random Forest (RF)
  • Support Vector Machine (SVC)
  • Ensemble classifiers (AdaBoost)
  • Optimal tree learning (DL8.5) - WIP

In particular, DL8.5 was explored in an attempt to improve the classification score. DL8.5 is an algorithm for finding optimal decision trees under constraints.

[DL852020] Aglin, G., Nijssen, S., Schaus, P. Learning optimal decision trees using caching branch-and-bound search. In AAAI. 2020.

Classification metric

The classification metric chosen for its robustness against imbalanced data is the balanced classification rate (BCR), known as balanced_accuracy in scikit-learn. This metric combines the sensitivity (or recall : ratio of the positive correctly classified samples to the total number of positive samples) and specificity (or inverse recall : ratio of the correctly classified negative samples to the total number of negative samples) metrics and it is calculated as follows, $BCR = \frac{1}{2} (TPR + TNR) = \frac{1}{2} (\frac{TP}{TP + FN} + \frac{TN}{TN + FP})$ .

classification metrics info chart

Image taken from towards data science .

Obtained results

<Work in progress>

Further remarks

The code was made with the idea of being easily adaptable for various datasets.

Disclaimer

This published code is not related to the LINGI2262 course, although the course's competition was an excuse to learn more about ML and get a firts hands-on experience. This repository should not be used as inspiration for the course's future competition (come one man, you should try this yourself ๐Ÿ˜‰).

single-cell-expression-data-classification's People

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.