Selective inference tools
Project description
lassoinf
lassoinf provides selective inference tools leveraging a high-performance C++ backend. It is a hybrid codebase written in Python and C++, utilizing pybind11 for bindings and the Eigen library for fast linear algebra.
Features
- Affine Constraints: Core numerical tools for inference tasks.
- Dual Implementation: Logic provided in pure Python (
lassoinf.affine_constraints) and fast C++ counterparts (lassoinf_cpp). - High Performance: The C++ extensions target C++14 and integrate seamlessly with numpy and scipy.
Requirements
Python
- Python >= 3.10
numpy,scipy,matplotlibmeson-python,ninja,pybind11(for building the extension)
R
- R >= 4.0
Rcpp,RcppEigen
General
- A C++14 compliant compiler
Installation
Python
You can install lassoinf and build its C++ extension directly using pip:
pip install .
For an editable install during development (using the meson-python backend):
pip install --no-build-isolation -Csetup-args=-Dbuildtype=debug -e .
R
The R package lassoinf requires Rcpp, RcppEigen, and R6. You can install the package from the terminal or directly from the source directory.
From the terminal:
# Build and install the package
R CMD INSTALL R_pkg
From within an R session:
# Install required dependencies if not already present
install.packages(c("Rcpp", "RcppEigen", "R6", "mvtnorm"))
# Install the package from the source directory
install.packages("R_pkg", repos = NULL, type = "source")
Or using devtools:
devtools::install("R_pkg")
Testing the R Package
To run the R test suite, you can use the testthat package from the command line:
cd R_pkg
Rscript -e 'testthat::test_dir("tests/testthat")'
Documentation
For more information, refer to the documentation in the docs/ folder. For the R package, you can view the vignette:
vignette("gaussian_lasso_boot", package = "lassoinf")
Alternatively, you can browse the pkgdown documentation site in R_pkg/docs/index.html.
License
This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lassoinf-0.1.1.tar.gz.
File metadata
- Download URL: lassoinf-0.1.1.tar.gz
- Upload date:
- Size: 3.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa86b8bee7e29d6512e0ccece6404ba9bf76afd9b32868e4c7a6711dc3227ac8
|
|
| MD5 |
f5dcc3bb64dd20f67c3cc8ffdee26c12
|
|
| BLAKE2b-256 |
90841fb5d2c06bc75deb13977ab2dcf2d07cacc088181334d03f71a1a898fdf7
|
File details
Details for the file lassoinf-0.1.1-cp314-cp314t-win_amd64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp314-cp314t-win_amd64.whl
- Upload date:
- Size: 356.6 kB
- Tags: CPython 3.14t, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1664bcbd41c1faab5a7707595bbc19a2104377f09d59f8b495de7d7fbff13cc
|
|
| MD5 |
ffa23eef98c09cfcca164ae5d4498a98
|
|
| BLAKE2b-256 |
367ab2485ef56f8d9b5695273701eeedd9d2fa511a25adbeaecba74e2e3d9eed
|
File details
Details for the file lassoinf-0.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.14t, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa840a4c0d2b47370074f0de0dbf283b1387e927817e78721ebe5115dfa2b5db
|
|
| MD5 |
1c86066cd89a72a9af5259cee4b7de0e
|
|
| BLAKE2b-256 |
6700f08f3310bc1ff751488cbf7c50a42e72122b7b2960d39b68c56dbeea6c7b
|
File details
Details for the file lassoinf-0.1.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 325.8 kB
- Tags: CPython 3.14t, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d367ac613d07c232ba489a5b95406bb2f77cf3953444359e94c0481f8e28f29
|
|
| MD5 |
43ae98ef12c5cd437047e55e0a8d9bd4
|
|
| BLAKE2b-256 |
8434a5a7cc3b013f5aab7661b95e5c2ccea0d2fa83093cf72d235d9c1a83de17
|
File details
Details for the file lassoinf-0.1.1-cp314-cp314t-macosx_11_0_arm64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp314-cp314t-macosx_11_0_arm64.whl
- Upload date:
- Size: 272.9 kB
- Tags: CPython 3.14t, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38c83604826f601a92d0fd880031eab081ba0b82e9a349f0498d45e01703afc5
|
|
| MD5 |
bb5f7a9f9d594f4727aaa15b886d6eb6
|
|
| BLAKE2b-256 |
51e9ecc789c6d90e2098b4221852e172cb152ccc17aa15c86b229cd8678ab716
|
File details
Details for the file lassoinf-0.1.1-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 354.1 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc03e0e669420fe43ddb54225f3e14c70a4bf4459d8343f975137c77d0255d02
|
|
| MD5 |
e53cd7061c3229f173c511e1a942279e
|
|
| BLAKE2b-256 |
8d2d75b1015b240e5e6457c8a9d62b7091fd155753a44bc49d813628479417c4
|
File details
Details for the file lassoinf-0.1.1-cp314-cp314-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp314-cp314-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.14, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9b4fd93151b9c4b98255dea52b3f51fbbdc688e8ffe668c1dfdc9b610727182
|
|
| MD5 |
101febe2fe0cfb3da46fdf207cc83c23
|
|
| BLAKE2b-256 |
6a9d41a44080a3d7092086360105531147688f815529999ba74d804940ffe083
|
File details
Details for the file lassoinf-0.1.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 324.5 kB
- Tags: CPython 3.14, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc8e1f9465bba2135f383eb8da02183c8052cd62db761e19d1ec15a32823f9cf
|
|
| MD5 |
588d0d2c2bf78630d5477a32c1c426ce
|
|
| BLAKE2b-256 |
21671fc1dac7d06eca1500c9097b677c15f77615c351920a77b6f2b724e94a19
|
File details
Details for the file lassoinf-0.1.1-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 262.4 kB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5ca7d4b9b595db768c62ca5a36fbcfea65531d30e1581f2e9bbfcb19134d32a
|
|
| MD5 |
dd56c8cdbd64de731d63227b16b04479
|
|
| BLAKE2b-256 |
99694d75aea47cc24236b36a58e3f8872a535d32da73180f679c5e24c7998c8d
|
File details
Details for the file lassoinf-0.1.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 346.5 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e430ea0b35dadc7242c4fa4ff77410cabacba6755aaaa171a53940a5bb138c3a
|
|
| MD5 |
9623837d8106a4692be0a6f5ab40f79e
|
|
| BLAKE2b-256 |
0cee90bdacc0d7a13c9379d63c8239f441a08dee883f4522fc00681f504769ce
|
File details
Details for the file lassoinf-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8975978cd2bbc178be997e8352877428e00b1538587fd39d4bb70591b7a9923
|
|
| MD5 |
3814072a587a7eb75a5884d0981321eb
|
|
| BLAKE2b-256 |
18ab87b43792cce32c1d65d1fcec6a21a43a0dd3e83d9c92f83eb90636b637b8
|
File details
Details for the file lassoinf-0.1.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 324.4 kB
- Tags: CPython 3.13, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c327086bf06182cfc26ef048f942725022912acff0251df2de2d16a8b6548dd
|
|
| MD5 |
9c176ad61c0ad0a4fcac80f9be93e9c2
|
|
| BLAKE2b-256 |
6ab9c1cd4f46bd21554ae0feaa96297061f9558c77ed681568a92d9523be07f5
|
File details
Details for the file lassoinf-0.1.1-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 262.0 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acd7a17292a89fd7d1dcedfae4531118d8afc862862733c487c962905a0e449d
|
|
| MD5 |
5c1fa2b3c61c07108f0f6c350fd2a962
|
|
| BLAKE2b-256 |
359c4b73576c31ce401a9bea474e1848247aa6034e8190d13e958986a335ae54
|
File details
Details for the file lassoinf-0.1.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 346.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71972271c717d5ea300afe6ee76c51e110af238a86c0c212d1d701188567f972
|
|
| MD5 |
92addc198af35eab2e0bd1a65ae90ecb
|
|
| BLAKE2b-256 |
48181a511b329c328d3b835d54506022ab9288bf0f3839918d0a16a8567a25eb
|
File details
Details for the file lassoinf-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5506149950225850c8f051bf96df6fd4c92e546fc374022d45634dd4a8a197f
|
|
| MD5 |
39bea49a3645521e78e8b8390171ec79
|
|
| BLAKE2b-256 |
64d042c6346e9afd158eafe7cadce7221991e3d25f4625e8cc95a9aa5a625f03
|
File details
Details for the file lassoinf-0.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 325.3 kB
- Tags: CPython 3.12, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b08a5283b4861dddc7655c7228759e0665a4950d3f3879d379ed879f302e2105
|
|
| MD5 |
9f4fc94271b1de703f8a84982903eb33
|
|
| BLAKE2b-256 |
d2c4b560c1f138cdb49967aead8b3f8be45f8ee2b2cd9beffda3947ed34ee547
|
File details
Details for the file lassoinf-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 262.0 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ae86910975a42d294cd7981b3f910820077aee46c7edfabd334a495ec23468c
|
|
| MD5 |
81e767a3c4994f320dc2f69abd30c3eb
|
|
| BLAKE2b-256 |
1f806bd3a2c0ce4c6a397139edb1a085ae34895b0073e72c2a73ea3f7df68c23
|
File details
Details for the file lassoinf-0.1.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 343.1 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f131bb91d90359b3a8e8a806f7f0ea62446926e5b20d99997b946d1686c5800f
|
|
| MD5 |
32c42daadf3ad97f5b6e9a3478f65437
|
|
| BLAKE2b-256 |
5e6baf0054219bb2f4eb7dbc08034b2cad8e316315801ac3b448df3a41ad7953
|
File details
Details for the file lassoinf-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d86566699926157d5ccae355302682458776d133d8335d0ebd886f96e278c828
|
|
| MD5 |
a596a25b55144baa8aa782312e739598
|
|
| BLAKE2b-256 |
b4fd739cd90d8669968673837a63e2b99911a697c2496c2075ee64116e46e641
|
File details
Details for the file lassoinf-0.1.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 322.8 kB
- Tags: CPython 3.11, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c1cd0742e260c6c33c178d3e08140de9dca48466c5bd0ba25a45bc410485183
|
|
| MD5 |
27f4922b871170a343bb6ec037963312
|
|
| BLAKE2b-256 |
110706ebc7fe00624d825ad4fb6c2284cb99e4d98dbbc83e9734c79eed07c2f0
|
File details
Details for the file lassoinf-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 259.5 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
677f0021e3e190aca8383dfe6cf36afb166f9e36fa55396bbe18a63b8fdb9caf
|
|
| MD5 |
967add58bf9643baab08dff01d27a2f8
|
|
| BLAKE2b-256 |
e67c4a671a2d9fd91cc246ee65b449cc43c9245253f61f35bc16d93363c0fd2d
|
File details
Details for the file lassoinf-0.1.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 343.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a109e8cd50a5f7641dd3e14220dc6da5fa2714b3bb05b8c3cd0bfdf2bc3006d7
|
|
| MD5 |
b7a1888c89cb9b45e8c4b221d14d3972
|
|
| BLAKE2b-256 |
5dce08e93208d038a0d7dd058bd9a4209e6ebcf42ad5ea85ec3d5ec79a13c647
|
File details
Details for the file lassoinf-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86477bedf77c4cb58801d61630c495dab2e0917348f8adbc0716b075096a911e
|
|
| MD5 |
1e3fcab60a1f31c6ac61d97ea1a67712
|
|
| BLAKE2b-256 |
fa160ce29292d2ca43305d77bb53ef4dad35e2343ae3643836b20b904fec8c6a
|
File details
Details for the file lassoinf-0.1.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 321.3 kB
- Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f9e97250d84287f2b1c161d3526b6c8cf0df526bdedddd7394eb3067e5ee060
|
|
| MD5 |
12b420debb0c6fc9c278b1810d4c583e
|
|
| BLAKE2b-256 |
6b7d85f1cad309e2c09c85ba3f451df9d95b13b8502bcb416d00bbe831cb37a3
|
File details
Details for the file lassoinf-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: lassoinf-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 257.9 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5cdbba0ab92f5a793a5621202611c012d27d902a8d288cfef9af8c7edc406a6
|
|
| MD5 |
c71446a5b29f5670275f928dbe459456
|
|
| BLAKE2b-256 |
9988bfa23d3c9b681ed1b53bb54c8a716999d14be7b3c114ab01660823775572
|