Bayesian Additive Regression Trees for Probabilistic programming with PyMC
Project description
Bayesian Additive Regression Trees for Probabilistic Programming with PyMC
PyMC-BART extends PyMC probabilistic programming framework to be able to define and solve models including a BART random variable. PyMC-BART also includes a few helpers function to aid with the interpretation of those models and perform variable selection.
Table of Contents
Installation
PyMC-BART is available on Conda-Forge. If you magange your Python dependencies and environments with Conda, this is your best option. You may also perfer to install this way if you want an easy-to-use, isolated setup in a seperate environment. This helps avoid interfering with other projects or system-wide Python installations. To set up a suitable Conda environment, run:
conda create --name=pymc-bart --channel=conda-forge pymc-bart
conda activate pymc-bart
Alternatively, you can use pip installation. This installation is generally perfered by users who use pip, Python's package installer. This is the best choice for users who are not using Conda or for those who want to install PyMC-BART into a virtual environment managed by venv or virtualenv. In this case, run:
pip install pymc-bart
In case you want to upgrade to the bleeding edge version of the package you can install from GitHub:
pip install git+https://github.com/pymc-devs/pymc-bart.git
Usage
Get started by using PyMC-BART to set up a BART model:
import pymc as pm
import pymc_bart as pmb
X, y = ... # Your data replaces "..."
with pm.Model() as model:
bart = pmb.BART('bart', X, y)
...
idata = pm.sample()
Contributions
PyMC-BART is a community project and welcomes contributions. Additional information can be found in the Contributing Readme
Code of Conduct
PyMC-BART wishes to maintain a positive community. Additional details can be found in the Code of Conduct
Citation
If you use PyMC-BART and want to cite it please use
Here is the citation in BibTeX format
@misc{quiroga2023bayesian,
title={Bayesian additive regression trees for probabilistic programming},
author={Quiroga, Miriana and Garay, Pablo G and Alonso, Juan M. and Loyola, Juan Martin and Martin, Osvaldo A},
year={2023},
doi={10.48550/ARXIV.2206.03619},
archivePrefix={arXiv},
primaryClass={stat.CO}
}
License
Donations
PyMC-BART , as other pymc-devs projects, is a non-profit project under the NumFOCUS umbrella. If you want to support PyMC-BART financially, you can donate here.
Sponsors
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 Distribution
File details
Details for the file pymc_bart-0.7.0.tar.gz
.
File metadata
- Download URL: pymc_bart-0.7.0.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf421cfebd96053a39222f8090aa58952fbcbb65e1e2fb8d5c70c8dc539af0ec |
|
MD5 | 858203f798e4ffcac024f8fc43a60b14 |
|
BLAKE2b-256 | 1db6eb403089664d2915a4b0fdfc98e467ad0683b8e5fc10afd5f93e5f5224dd |
Provenance
File details
Details for the file pymc_bart-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: pymc_bart-0.7.0-py3-none-any.whl
- Upload date:
- Size: 29.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7ccd775a9262f0f7253dcbb45ef58f5ee41f474ad5cc1671a452c4604094894 |
|
MD5 | b225b83b0af177e9913064f38c777fdc |
|
BLAKE2b-256 | 4d36c65c19eefc4937367e13e92412b6099527ba83bafc32fbabba2029a9520b |