Skip to main content

Knockpy

A python implementation of the knockoffs framework for variable selection. More docs to come!

To run tests

  • To run all tests, run python3 -m pytest
  • To run a specific label, run pytest -v -m {label}.
  • To select all labels except a particular one, run pytest -v -m "not {label}" (with the quotes).
  • To run a specific file, try pytest test/{file_name}.py. To run a specific test within the file, run pytest test/{file_name}.py::classname::test_method. You also don't have to specify the exact test_method, you get the idea.
  • To run a test with profiling, try python3 -m pytest {path} --profile. This should generate a set of .prof files in prof/. Then you can run snakeviz filename.prof to visualize the output. There are also more flags/options for outputs in the command line command.
  • Alternatively, cprofilev is much better. To run cprofilev, copy and paste the test to proftest/* and then run python3 -m cprofilev proftest/test_name.py.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

knockpy-0.1.4.tar.gz (82.0 kB view details)

Uploaded Source

File details

Details for the file knockpy-0.1.4.tar.gz.

File metadata

  • Download URL: knockpy-0.1.4.tar.gz
  • Upload date:
  • Size: 82.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for knockpy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6a187edb2cdcfcdcd842e6af3599171f12748744b8015c632a5a2a8ebc41b77f
MD5 3c2b353771fceab9a31e041986e5f1ed
BLAKE2b-256 34a8b663ebc313446a12faf9d4c02018a67b8fa46f812c3bc92fc23324ee4980

See more details on using hashes here.

Release history Release notifications | RSS feed

1.3.5

1 file

1.3.4

1 file

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3.0

1 file

1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

0.1.6

1 file

0.1.5

1 file

This release

0.1.4 This release

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1

1 file

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page