Git Product home page Git Product logo

derandomized_knockoffs_paper's Introduction

derandomized_knockoffs_paper

A repository to reproduce the numerical results in the Derandomized Knockoffs paper.

Overview

We provide the code to exactly reproduce the numerical results in Section 3-5 of the paper. Based on the code, we additionally develop an R package derandomKnock, which will be constantly improved and udpated. We recommend the users to check out the R package if they want to want to use the procedure.

Folders

  • R/: contains the main functions that implement the variable selection procedures.
  • simulations/: contains the scripts to carry out the simulations.
  • results/: stores the result.
  • bash/: bash files to run the simulations.

Usage

Single run

Each script in the simulations/ folder implements one run of the simulation. The users can specify the amplitude and the seed when running the script. For example, to implement one run of the small-scale experiment in Section 3 with amplitude 4 and seed 1, run the following command in your terminal:

Rscript ./simulations/pfer_small.R 4 1

Multiple runs

The results presented in the paper are averaged over multiple runs. The user can use the bash file in bash/ to automatically implement multiple runs of the simulation. But note that it may take a long time if it is run on a laptop. To use the bash file, run the following code in your terminal:

bash ./bash/run_all.sh

derandomized_knockoffs_paper's People

Contributors

zhimeir 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.