This repository hosts the Data Valuation framework designed for Iterative Self-Learning purposes. | Read-only mirror of https://github.com/swisscom/ai-research-data-valuation-repository — Swisscom. Issues & pull requests at the source.
  • Shell 64.3%
  • Python 35.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-09-07 19:40:34 +02:00
codi Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
dataset Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
env Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
features Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
inference_models Small modification for label correspondence in __inference_utils.py. 2020-08-17 10:23:37 +02:00
speech_inference Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
.gitignore Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
CONTRIBUTING.md Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
LICENSE Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
main_speech.py Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
n_step_experiment.py Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00
pipeline_diagram.png Updated the diagram in the readme. 2020-08-12 16:04:13 +02:00
readme.md Added authors in the readme. 2020-09-07 19:40:34 +02:00
retraining_experiment.py Publishing open-source version of the framework. 2020-08-12 15:56:27 +02:00

Data Valuation

Data Valuation provides three main blocks as shown in the diagram below:

  1. An inference model that takes as input the data
  2. A feature extractor that will compute features based on the raw ones.
  3. A CoDi (Confidence Discriminator) that will accept/reject the datapoints.

alt text

Features

  • A highly modular end-to-end framework:

    • Easily customizable inference model : researchers can plug their own inference model or tune the one provided.
    • Easily customizable confidence discriminator model : researchers can plug their own codi or tune the one provided.
    • Any Inference model can be used (tested on images, NLP, speech)
    • Customizable plug-n-play feature processing : can easily choose which features to keep, add or remove.
    • Customizable datasets by dataset classes inheritence.

Speech Dataset

The LibriSpeech corpus is a large (1000 hour) corpus of English read speech derived from audiobooks in the LibriVox project, sampled at 16kHz. The accents are various and not marked, but the majority are US English. It is available for download for free at http://www.openslr.org/12/. It was prepared as a speech recognition corpus by Vassil Panayotov.

Directory Layout

|-- codi
   |-- train_codi.yaml
   |-- mlp_codi.yaml
   |-- mlp_codi.py
   |-- ...
|-- dataset
|-- env
|-- features
   |-- features_classes
   |-- features_tests
|-- inference_models
|-- main.py
|-- main_speech.py
|-- retraining_experiment.py
|-- preprocessing
|-- README.md
|-- speech_inference
   |-- local
   |-- run.sh
   |-- RESULTS
   |-- ...

Steps to reproduce for speech

Run image locally using following command and replace the files in egs/librispeech/s5 folder by the ones in speech_inference:

nvidia-docker run -it kaldiasr/kaldi:gpu-latest bash

Then run main_speech.py script.

Docker Installation

To build and run the image locally:

cd env
docker build -t dataval .
docker run -it dataval /bin/bash

How to run

  • To run the main pipeline, call the main function in main.py (or main_speech.py for the speech setup)
  • To run retraining experiments, call the main function in retraining_experiment.py

Requirements

Listed in 'env/requirements.txt'.

Team

Code written by:

Jean-Baptiste Membrado

Joëlle Hanna