Code Monkey home page Code Monkey logo

supervised_missing's Introduction

On the consistency of supervised learning with missing values

Authors: Julie Josse (CMAP, Inria), Nicolas Prost (CMAP, Inria), Erwan Scornet (CMAP), Gaël Varoquaux (Inria).

Simple example notebook

Update: the directory Notebook contains a tutorial on key results of the paper.

Binder

Access the Notebok via Binder at the following URL

https://mybinder.org/v2/gh/dirty-data/supervised_missing/master?filepath=Notebook%2FA%20toy%20regression%20model%20with%20missing%20values.ipynb

Notes Without Binder, install the required Python libraries via

pip install -r requirements.txt

Code for the simulations in the paper

This repository contains the code for the paper:

Julie Josse, Nicolas Prost, Erwan Scornet, Gaël Varoquaux. On the consistency of supervised learning with missing values. 2019. 〈hal-02024202〉https://arxiv.org/abs/1902.06931

The directory analysis contains the code for figures 1 and 2 (section 5).

boxplots corresponds to figures 3 and 4 (section 6). There are three separate files: one containing the functions, one containing the script for computation, and two for the visualisation (one of each of the two boxplots).

consistency is used for figure 5 (section 6). There are three files as for the boxplot, but in addition, approximate Bayes rates are computed in bayesrates.R with oracle multiple imputation, as detailed in the paper.

The scripts require the following R packages:

rpart
party
ranger
xgboost
MASS
norm
doParallel
doSNOW
gridExtra
viridis

To run script_boxplots.R or script_consistency.R with, say, 20 jobs to parallelize the "for" loop and 10 threads per forest/boosting, do

Rscript boxplots/script_boxplots.R 20 10
Rscript consistency/script_consistency.R 20 10

To build the figures, just run the scripts,

Rscript boxplots/visualisation_boxplot1.R
Rscript boxplots/visualisation_boxplot2.R
python consistency/visualisation_consistency.py

All figure outputs go to the directory figures (created when nonexistent).

Nicolas Prost

July 10, 2019

supervised_missing's People

Contributors

nprost avatar gaelvaroquaux avatar

Watchers

James Cloos avatar  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.