Coder Social home page Coder Social logo

data-centric-ai-hackathon's Introduction

Data Centric AI hackathon

Let’s boost our data centric AI skills in this hackathon. I'll bring some starter code and ideas to get you going fast.

Note: The hackathon is not limited to DS/MLE -- as long as you like coding and optimisation, you should be good to go!

Background

The example problem of the hackathon is to simulate something that is taken from a real problem we have at Schiphol in the Deep Turnaround project. There we have a huge data set with annotations for the model to train on. However, some annotations need to become more specific: instead of predicting that a luggage loading vehicle is present, we want to be able to discern whether the vehicle is active at the front or at the rear of the plane. We can of course migrate the annotations to a new version and start training the model with the new labels, but initially we have very limited amount of labels in the new data set.

Unfortunately we cannot share the images from Schiphol. The proposal is to simulate the problem using a super simple dataset: MNIST digits. We modify the labels in MNIST in the following way. The 7s and the 1s are mapped to a combined class: C. A model is trained that predicts the labels for MNIST. This model is not able to distinguish 7s from 1s. The goal now is to train a new model that can distinguish 7s from 1s, but with as little as possible annotations needed.

Because we map original labels to a common class, there is no need to do actual annotations. We just provide a annotation function (i.e. get the original label, not the combined class C) that can be applied to a specific sample. The goal of the hackathon is to achieve a 90% accuracy of discerning 7s from 1s with as least as possible applications of the unmapping function.

Some ideas that the participant might explore are:

  • Iteratively fitting a model purely on 7s and 1s and use that model in an active-learning setting
  • Clustering in latent space
  • Transfer learning
  • other smart tricks

Setting up

Below are the instructions for installing the package and libraries on your laptop. Consider the section below if you run into issues.

python3.10 -m venv venv
source venv/bin/activate
pip install -e '.[notebook]'

Start Jupyter notebook (an example notebook is given in notebooks/example-naive-annotations.ipynb)

jupyter lab .

Running into issues when installing the packages?

Option 1: Colaboratory

  • Goto colab.research.google.com.

  • Start a notebook by uploading one of the example notebooks (file->upload notebook).

  • Download the code as a zip file from github. Upload that in the directory content (this is where your notebook is running) on colaboratory.

  • Add the following two cells at the top of the notebook.

    • Unzip the file by executing:
    !unzip filename_of_zip.zip
    • Install the package by running (do not install the notebook dependencies):
    !pip install filename_of_zip/

Rules

Cheating is easy! Just download the original MNIST data set or download a pre-fitted model are two examples. Keep in mind that the goal of the hackathon is to get experience with data centric AI. If one of your solutions feels like cheating, it is cheating πŸ™‚

Some ideas

  • Use an unsupervised learning technique such as clustering. Use this clustering as an initial method for getting the initial labels.
  • Use an existing tool to help you with it. Consider installing bulk.
  • Go nuts: implement active learning yourself.

data-centric-ai-hackathon's People

Contributors

j0rd1smit avatar ykerus avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

andresolerc

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.