/deepknockoffs

Approximate knockoffs and model-free variable selection.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Deep Knockoffs

This repository provides a Python package for sampling approximate model-X knockoffs using deep generative models.

Accompanying paper: https://arxiv.org/abs/1811.06687

To learn more about the algorithm implemented in this package, visit https://web.stanford.edu/group/candes/deep-knockoffs/ and read the accompanying paper.

To learn more about the broader framework of knockoffs, visit https://web.stanford.edu/group/candes/knockoffs/.

Software dependencies

The code contained in this repository was tested on the following configuration of Python:

  • python=3.6.5
  • numpy=1.14.0
  • scipy=1.0.0
  • pytorch=0.4.1
  • cvxpy=1.0.10
  • cvxopt=1.2.0
  • pandas=0.23.4

Installation guide

cd DeepKnockoffs
python setup.py install --user

Examples

License

This software is distributed under the GPLv3 license and it comes with ABSOLUTELY NO WARRANTY.