Skip to main content

Bayesian Additive Regression Trees for Probabilistic programming with PyMC

Project description

Bayesian Additive Regression Trees for Probabilistic Programming with PyMC

pymc-bart logo

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 arXiv

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

Apache License, Version 2.0

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

NumFOCUS

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

pymc_bart-0.11.0.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymc_bart-0.11.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file pymc_bart-0.11.0.tar.gz.

File metadata

  • Download URL: pymc_bart-0.11.0.tar.gz
  • Upload date:
  • Size: 43.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymc_bart-0.11.0.tar.gz
Algorithm Hash digest
SHA256 fc107a29f12c7a4345fca33ae3fda5208da4788e0f5e776a37a71cb871097d95
MD5 21ff91a23c17cef72c698e0a37be7168
BLAKE2b-256 acd10de1909cc35f7b5df98fa5bd93585f1489a1bb59161d10e023acfa7c6c59

See more details on using hashes here.

File details

Details for the file pymc_bart-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: pymc_bart-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymc_bart-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c07ec5cf854a39c6f7328998d01d96da9ba956fb27020f691f90a1dc65c1855f
MD5 22724c3a72aa95b664c60db60aafa3ef
BLAKE2b-256 041ac2c8f28f9522d4e08c402949b350e11249be492663f7e95ac209d1979dd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page