Kullback-Leibler projections for Bayesian model selection.
Project description
Kullback-Leibler projections for Bayesian model selection in Python.
Overview
Kulprit (Pronounced: kuːl.prɪt) is a package for variable selection for Bambi models. If you find any bugs or have any feature requests, please open an issue.
Installation
Kulprit requires a working Python interpreter (3.11+). We recommend installing Python and key numerical libraries using the Anaconda Distribution, which has one-click installers available on all major platforms.
Assuming a standard Python environment is installed on your machine (including pip), Kulprit itself can be installed in one line using pip:
pip install kulprit
By default, Kulprit performs a forward search. If you want to use Lasso (L1 search), you need to install scikit-learn package. You can install it using pip:
pip install kulprit[lasso]
Alternatively, if you want the bleeding-edge version of the package, you can install it from GitHub:
pip install git+https://github.com/bambinos/kulprit.git
Documentation
The Kulprit documentation can be found in the official docs. The examples provide a quick overview of variable selection and how this problem is tackled by Kulprit. For a more detailed discussion of the theory, but also practical advice, we recommend the paper Advances in Projection Predictive Inference.
Contributions
Kulprit is a community project and welcomes contributions. Additional information can be found in the CONTRIBUTING.md page.
For a list of contributors, see the GitHub contributor page
Citation
If you use Kulprit and want to cite it, please use
@article{mclatchie2024,
author = {Yann McLatchie and S{\"o}lvi R{\"o}gnvaldsson and Frank Weber and Aki Vehtari},
title = {{Advances in Projection Predictive Inference}},
volume = {40},
journal = {Statistical Science},
number = {1},
publisher = {Institute of Mathematical Statistics},
pages = {128 -- 147},
keywords = {Bayesian model selection, cross-validation, projection predictive inference},
year = {2025},
doi = {10.1214/24-STS949},
URL = {https://doi.org/10.1214/24-STS949}
}
Donations
If you want to support Kulprit financially, you can make a donation to our sister project PyMC.
Code of Conduct
Kulprit wishes to maintain a positive community. Additional details can be found in the Code of Conduct
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 kulprit-0.5.1.tar.gz.
File metadata
- Download URL: kulprit-0.5.1.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ea6c5560ad0db32974220bb4cdb2943617504104b1383c36019c7475d5dd58d
|
|
| MD5 |
c5b15987864ee8633b73215b663abc55
|
|
| BLAKE2b-256 |
bf2c57bfe4f4b7b627f9cbae35ffdf746ca6cf92372ebe92804f5f0f7b25bf20
|
File details
Details for the file kulprit-0.5.1-py2.py3-none-any.whl.
File metadata
- Download URL: kulprit-0.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b3a4e0304426f4eeaadaf55bedc9edeac109aea0542a3714af27036e46f09eb
|
|
| MD5 |
d7e7c9f9146fb26a755193e3cdce9f46
|
|
| BLAKE2b-256 |
9e5399a71dcacd25be0ec064210a4c8895c44e70dc4f72e07bd8355e72f26fad
|