Rust implementation of Bayesian Additive Regression Trees for Probabilistic programming with PyMC
Project description
PyMC-BART-rs
Rust implementation of PyMC-BART. PyMC-BART extends the PyMC probabilistic programming framework to be able to define and solve models including a Bayesian Additive Regression Tree (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 PyPI with pre-built wheels for Linux (x86_64, aarch64), Windows (x64), and macOS (x86_64, aarch64). To install using pip
pip install pymc-bart-rs
Usage
Get started by using PyMC-BART to set up a BART model
import pymc as pm
import pymc_bart_rs as pmb
X, y = ... # Your data replaces "..."
with pm.Model() as model:
bart = pmb.BART('bart', X, y)
...
idata = pm.sample()
Modifications
The core Particle Gibbs (PG) sampling algorithm for BART remains the same in this Rust implementation as the original Python implementation. What differs is the choice of data structure to represent the Binary Decision Tree.
A DecisionTree structure is implemented as a number of parallel arrays. The i-th element of each array holds information about node i. The zero'th node is the tree's root. Some of the arrays only apply to either leaves or split nodes. In this case, the values of the nodes of the other arrays are arbitrary. For example, feature and threshold arrays only apply to split nodes. The values for leaf nodes in these arrays are therefore arbitrary.
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 pymc_bart_rs-0.1.2.tar.gz.
File metadata
- Download URL: pymc_bart_rs-0.1.2.tar.gz
- Upload date:
- Size: 257.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f9085d2e3ebb7d3a3e77ef531c6a88cdee7c8dec9361f8dd2b1d3c951d9a63d
|
|
| MD5 |
a4552f18442118056fc2b93339118721
|
|
| BLAKE2b-256 |
d93f5e4dbc8484f5bc74b069ebf8ae21d4652bec804bf7355b96fadb64e408c2
|
File details
Details for the file pymc_bart_rs-0.1.2-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: PyPy, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a84f27828cdac17f3b29cb4b4b65573c0f4a3ec6ddcc47dd652053a89b51448
|
|
| MD5 |
f9c234fff93e883f1f39d514e8b492ee
|
|
| BLAKE2b-256 |
e95a9e31565d35ba270e7a1d2e98d547725081dd4f2f1e694518d651f6359d16
|
File details
Details for the file pymc_bart_rs-0.1.2-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: PyPy, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ed6acba590d5cda9b1c8bf35082e0bb30b9c4fd904526634682c9f67a77de3d
|
|
| MD5 |
0efcede110fccf25100b3f047e35728a
|
|
| BLAKE2b-256 |
b901e218f251e1b5caf5c37c7af25dea0ee202b4e57b8a914e7bb3e5fb46e928
|
File details
Details for the file pymc_bart_rs-0.1.2-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: PyPy, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b290101176da276301751ad5bbeb13381973606a1e5bb23fcc5ba61ae40df401
|
|
| MD5 |
60c2548135a7f60e178e63e5f45fb2a9
|
|
| BLAKE2b-256 |
4c3d85be66211bd4e7bb2483ae255dfb5c4c182245196b3355f43e6e3ef30552
|
File details
Details for the file pymc_bart_rs-0.1.2-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: PyPy, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e4ed6d575800af1c63fa462aa2a670032268fb439e7da71904b742b1ec5d87d
|
|
| MD5 |
4a362c7a30b6e9db7f378946f2bd7ebe
|
|
| BLAKE2b-256 |
605ac556e2625dd91b68e87a1df91dd704ec9ab025edbb5a359a79205e244f39
|
File details
Details for the file pymc_bart_rs-0.1.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 211.2 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57b58b17ae4634c101b8068d1e1cee418fd924e428180092f7866c1eda114ed7
|
|
| MD5 |
9ce2905147cfa797270224d288e3600f
|
|
| BLAKE2b-256 |
38367ff4a569a820f45d337055e2ed1650d20ccb720a4a4bf164c23a93dc33bb
|
File details
Details for the file pymc_bart_rs-0.1.2-cp312-cp312-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c8bd92df02c17246d61b992bc3a4d4262e9419ce22ea4d27448e133176f11d0
|
|
| MD5 |
eb43cce84f836800ed01e19ec7c13d16
|
|
| BLAKE2b-256 |
c3eaa74229cb971541d46c9f19f1d3247d4fb30aaa6a454162f402bad216a540
|
File details
Details for the file pymc_bart_rs-0.1.2-cp312-cp312-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp312-cp312-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1668bccff797de0ed93147c94ffb7eb55ccb2afbb59dcc216c280d80e7780da2
|
|
| MD5 |
21cd3b774cde87efc0d58ff2c77e4559
|
|
| BLAKE2b-256 |
37bd0120fe5c5deae3f471fbc257e2ff1638130d156e7c92ea8d5f0a66568a31
|
File details
Details for the file pymc_bart_rs-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 301.8 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46aa66c85c3031558a97f3da1cab8b09821b624c3d78e57014f7fea61fedb909
|
|
| MD5 |
ef0cca026f13a8146a3d8bdebf18639b
|
|
| BLAKE2b-256 |
a2860e32fc8e7b965d7298996775304685774467eed716a835047898672f4099
|
File details
Details for the file pymc_bart_rs-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 311.9 kB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74ec84b127f4eb50b3e5c4b5248a78e1ce1d807bf2a8af058217676a56a98991
|
|
| MD5 |
bd433105211fcb3ee4b0e1746f40b5d8
|
|
| BLAKE2b-256 |
98e96e6290fd62f4d64356ba199af815af1e60f29a10cdf82d8e4324bc6a8a3c
|
File details
Details for the file pymc_bart_rs-0.1.2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 214.3 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9946585ded30068c4dca4a29b9f54458c28ff830689d66e7be608f9adbe8924c
|
|
| MD5 |
1142b1b5a861621f4a58383f427b08ba
|
|
| BLAKE2b-256 |
efe70a6c12058ba66206a0d78ca50c3de22dbce609f7839a52e590a5d94dc8f9
|
File details
Details for the file pymc_bart_rs-0.1.2-cp311-cp311-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1055fce441ad1d9a84e1e00ad4b5b1f1ce569cf4be05417017772df43a3c88e
|
|
| MD5 |
206ffbfddab7ae8a8a40413414d31462
|
|
| BLAKE2b-256 |
0b3f3e2a8583a23cad3c1d6d72a6f240656689924e43a775b63162ba9b3aa2bd
|
File details
Details for the file pymc_bart_rs-0.1.2-cp311-cp311-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp311-cp311-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da14c6ddf1fef2e2d370c008b0762c90a4b21faced6b827b549af0801a2868d4
|
|
| MD5 |
397bc2c37b3a49f785e4c379611d4ab2
|
|
| BLAKE2b-256 |
bb033f1cecac4ab75d1838ab4e92c54ff64afb0552fe7926dd03806ac71a3c0e
|
File details
Details for the file pymc_bart_rs-0.1.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 302.5 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e893ccad0172743752d824716d0e59efeb8a7af5dea13439c3a5e94581ef9840
|
|
| MD5 |
2dda34fbdb53f359889257ff498a7d70
|
|
| BLAKE2b-256 |
99f3a6b1021d49924287f408e6d15b8501615bee5f981c1ef581520285d36913
|
File details
Details for the file pymc_bart_rs-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 312.6 kB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5085f48708861f7abe9b639d4469a066788406d9472976067ea5eeb88d96f735
|
|
| MD5 |
eb6a9c8a1ff23b315785065541382a5f
|
|
| BLAKE2b-256 |
bb33d8a09f0cf473868155146d54305a3c40909daad2027b5181998fe4334202
|
File details
Details for the file pymc_bart_rs-0.1.2-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 214.3 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbf53849777cc5a57ef9d20fcb19a4c98999e7683b5388a477c7582fbd800d75
|
|
| MD5 |
2c66fe4560980e8060b7a9318167842e
|
|
| BLAKE2b-256 |
a0442cabb4c3656509f17692c88bdb91c8aa57c7bee7e93f6fc0e2291e49d861
|
File details
Details for the file pymc_bart_rs-0.1.2-cp310-cp310-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f19be1609bc84527989fe3698f188c6225da5ad2049fd8976a95296594d896d6
|
|
| MD5 |
19727cefb8600c1714ae52751d6ca93e
|
|
| BLAKE2b-256 |
372f6cf2318ba9c44281f42696d2f57f9fa07ce97b7f7887d7715dfe362f3834
|
File details
Details for the file pymc_bart_rs-0.1.2-cp310-cp310-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp310-cp310-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74ea9991a874dc737a01fdb163081cdb7cd649a9ab9362978ab8ddc19a036fcd
|
|
| MD5 |
51f66ecd2bc3759c5c98fdc534a30fe5
|
|
| BLAKE2b-256 |
2fb21e940388c3e5e92dfd9dfed602b036b40443f2638c9127d40eaf42d47bf7
|
File details
Details for the file pymc_bart_rs-0.1.2-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 302.6 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f1062d7e504ceac1d5748bba8c9d92f7707207c4e2cbcfddd69fdf8b10ea8f7
|
|
| MD5 |
e4f1d7d70792d6af442f285ec09c2dad
|
|
| BLAKE2b-256 |
dcf45b26edfc1ce2166dbb16c21b1704dca08abb2889acdbefa69ad925ddcfeb
|
File details
Details for the file pymc_bart_rs-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl
- Upload date:
- Size: 312.6 kB
- Tags: CPython 3.10, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86d6be400b15e47a76d807911aa57b5f38cf7011af6ae1d40ce722154b60681a
|
|
| MD5 |
2cdf215e30a3a450c6cfdce581075282
|
|
| BLAKE2b-256 |
fac68fb4e8f32b79366eba669dc3b15647973c98ae6f5f5e78c0c6c5c8a87ae9
|
File details
Details for the file pymc_bart_rs-0.1.2-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 214.4 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5a056faf932e946ec4bdbbc83dcb3f46ad264c58191d1f20847bacc83227733
|
|
| MD5 |
740b99116e245331bd4c21949305f9ee
|
|
| BLAKE2b-256 |
a0bb85f11f5e4cbeb053759d0922fc20fb56a0899fe47420fd8ace0d6aafb3c7
|
File details
Details for the file pymc_bart_rs-0.1.2-cp39-cp39-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3bf4de595151d73ac8915b89aea1c92756c3ff4fe24d8a381814d7ca08e0cfe
|
|
| MD5 |
9e3cd3a66797d4aeff80b85949f823b0
|
|
| BLAKE2b-256 |
edfdb79aeece53874fd02b60a074bad7299f13404d359fd3832f4dc87ba44fec
|
File details
Details for the file pymc_bart_rs-0.1.2-cp39-cp39-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp39-cp39-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01c3afc62e1d0cd9a638da7da45583d54624876d087ad72e4c4df4eefecf3de2
|
|
| MD5 |
7e825312e5893c91df4197b56dbd87a5
|
|
| BLAKE2b-256 |
e9ddd6b0edc34ddd50443e538532490dc8b8975c545a8ada6d57bfb842e86c27
|
File details
Details for the file pymc_bart_rs-0.1.2-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 214.5 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f126de3d991628ec23d2caf9c3571e4e043b7c0561dc3903c848ef8a5a1aacfb
|
|
| MD5 |
f34d07ebe139c1ff3d23de05fcbb155d
|
|
| BLAKE2b-256 |
bd1c66010d1abcb27af8f129e24646245290462e9c9916df10218bd885994f1f
|
File details
Details for the file pymc_bart_rs-0.1.2-cp38-cp38-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp38-cp38-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85342563dcacb5ff4d520f0c531005e7899eced90bfc93c322cb40e6089d0ee0
|
|
| MD5 |
5daa1cfb8f9aba0b79deeba6ca3ab8f3
|
|
| BLAKE2b-256 |
d1bc67bc6bdc7a48d0605466026cfa99b5e23d369722a1e9e8ccce6001487dc1
|
File details
Details for the file pymc_bart_rs-0.1.2-cp38-cp38-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pymc_bart_rs-0.1.2-cp38-cp38-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.8, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e907ca6d416633ba747f3f61f10f8e1f3c22735762284b0428514ecc43009d6
|
|
| MD5 |
dd941d9e3042d22977138b88ec4c900c
|
|
| BLAKE2b-256 |
21419c463dd70d2ee078e7ca4e55b5d424057a81f6ec95bdb9989bf4c9d7f5a4
|