Skip to main content

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


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_rs-0.1.1.tar.gz (258.8 kB view details)

Uploaded Source

Built Distributions

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

pymc_bart_rs-0.1.1-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

pymc_bart_rs-0.1.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

pymc_bart_rs-0.1.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

pymc_bart_rs-0.1.1-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

pymc_bart_rs-0.1.1-cp312-cp312-win_amd64.whl (211.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pymc_bart_rs-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pymc_bart_rs-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

pymc_bart_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (301.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pymc_bart_rs-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl (311.8 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

pymc_bart_rs-0.1.1-cp311-cp311-win_amd64.whl (214.3 kB view details)

Uploaded CPython 3.11Windows x86-64

pymc_bart_rs-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pymc_bart_rs-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

pymc_bart_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (302.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pymc_bart_rs-0.1.1-cp311-cp311-macosx_10_12_x86_64.whl (312.6 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

pymc_bart_rs-0.1.1-cp310-cp310-win_amd64.whl (214.2 kB view details)

Uploaded CPython 3.10Windows x86-64

pymc_bart_rs-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pymc_bart_rs-0.1.1-cp310-cp310-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

pymc_bart_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (302.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pymc_bart_rs-0.1.1-cp310-cp310-macosx_10_12_x86_64.whl (312.6 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

pymc_bart_rs-0.1.1-cp39-cp39-win_amd64.whl (214.4 kB view details)

Uploaded CPython 3.9Windows x86-64

pymc_bart_rs-0.1.1-cp39-cp39-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

pymc_bart_rs-0.1.1-cp39-cp39-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

pymc_bart_rs-0.1.1-cp38-cp38-win_amd64.whl (214.6 kB view details)

Uploaded CPython 3.8Windows x86-64

pymc_bart_rs-0.1.1-cp38-cp38-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

pymc_bart_rs-0.1.1-cp38-cp38-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ ARM64

File details

Details for the file pymc_bart_rs-0.1.1.tar.gz.

File metadata

  • Download URL: pymc_bart_rs-0.1.1.tar.gz
  • Upload date:
  • Size: 258.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for pymc_bart_rs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 144a0aeab9ce2519db9dffbf95a4fe73a3eddbf28e0bd84fe3d6a56fc3071899
MD5 d4105caad92c50e6e858d5d2218bfa86
BLAKE2b-256 66caac4d88eb2842c3b03c453123805914c54291cf0d0047b6d6d590914a8ad3

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 00fec9159abff14bfc0bda8d9b7a45d6bd0247d8019071f380665ffa0ed3f4e7
MD5 803a47a4bb8e6ec9a2b62a1280551874
BLAKE2b-256 bc6a240957c4c6ad3700bc31bc29da5fc14e496c5053a8e4116c3f0e2a962e3c

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0b4bbca853debc600b5167244849cae7c64bdf6db1d8c349520d131de012ce2d
MD5 6be4cdda183e078a8feacb6de37a0ada
BLAKE2b-256 453bdebe88a7ac9b2cbc10b4f46ff24a824164dc4287d364084746819a814d58

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b51de2bbf132a2b7a32b8dc01e016a2785c749d345debdb5db8d72d7de88316f
MD5 691862ef65be3ace1920bb7196be224c
BLAKE2b-256 8e3836d9323ea1157d5c6db5db2f08edc4cc9840dd025559d61766d434ded74e

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 23512c5ea1ec203c79b264c0f5c4c6788b8c2678a941e0649eb94f9a4199436a
MD5 ae9328ebef93b935f1eaab6d865bcd7e
BLAKE2b-256 8afc7f370635bf7d101c4990f0d9b63892ecd9a03d8676bcb870c33e1d8f9d14

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cdd334f0ca8b686ddc9b31ebb5a8eb4286c6774904f62a38066af72507a2dd54
MD5 8a5709c776b73874f242af47d934c999
BLAKE2b-256 be59dd367a22a976e104cab49937eaede60fbc9ca63316533ef82e6f1a2be5e5

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e573f9ea65045ccc4b4cd0bdf838f2cc04546047b9f26373820a1e815a83c355
MD5 bd89d329fe6124f83e0c793856b68d7b
BLAKE2b-256 bdd27a77e6b321372784dcf5d91294533444006b736e768328fae7df963c6c30

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 381ca13aca88c7a8b50a87afaeb27e086447d5734d0361590d57fef850608869
MD5 30fbe6cd18a913a9e0205371fabebbff
BLAKE2b-256 fd2eb68f6e8543e92a4f048577565e2769dcbcd59cdc384991d408815c108391

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af5f89ff2255272cfb9988b6de81486af6bab6e1a8e740455baf4f96668eb32d
MD5 ca0dd18782f4b37fbe15b4d75bb17a11
BLAKE2b-256 abd8654f1a42e8b9858caa64f177241df369fb3db05a5253eb3016139ab8597e

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c61d03feefc7924408bfb83a31716d726a5d9c1dabeb1b8f37b34bc2b95dc1da
MD5 0886263bdd7dabf5b6c1d3988f4ef95d
BLAKE2b-256 a04b718848810bddd2d73e74ac771d791600a59cf8bbdfd99fd9c9bb10a9fad9

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 49a73260edaf1e043da026e93392dc117f0a0d2ed511324ce5f88eac03f170d1
MD5 a132ceda0f2c577eee97b3b9edc96ab6
BLAKE2b-256 6e9df2ee05b7890c394e76ccdfaa90195e7e1fbfc3e42a98c8b7af5ca4822fcf

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b1fee58a27bbd489da9015cc7ecaa7513c1d7dcfac2aac019af513489bf9d33f
MD5 c45fd5110e8833325b02e401c7a316b6
BLAKE2b-256 492b1c428ef80314892f18891b2f7c772824eabafbbc3bd0eaf7760359f5984b

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 18d2de00a20720fc411c59860aaf575894e625c4d90ddeb29793a32ff9d9cb62
MD5 7b11e5c47e9a5f536b1dbaa90a20deb9
BLAKE2b-256 4865b24e92ce9d12e2913c4dd7a186162177b9dbd6aa7a4879bf7950b9297375

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca25e37faaf7db2f1bf8c9a322a4f5dd8270e2e546926cae9eb7883b0f07bbb5
MD5 c5967090f89fe01ec0840e96b3c9b6a6
BLAKE2b-256 4ed74a9270d37aebc4a4f1713af9ca056c4f17a0d280fbb322dfd902a98fd22b

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1eb37baf10805735a0ffe323cb682630d2957603e84aada97072fd3051c372bb
MD5 dd792ce61a86e2c01361ba12daaf3c52
BLAKE2b-256 52c1e7ff775ab82d00b54f81bc9f0c44a21a1c937c81670230f5321767b0f695

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f122475688893cdf8c1ce13339ebfc7300350825fdc2a5cf994959a73f41ff4e
MD5 be320daf88d5e4c1552904ff93adb18b
BLAKE2b-256 02d5f449cb2def671bb9cc3f2b322483f09c87f25589f87aec0850d113d64b17

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cd82f54ddb8ec758420d98d862358ab59e6bc0c1914e3c1f7868fcecf4d2306c
MD5 dc846ee8fde12c964b19912bda47518c
BLAKE2b-256 842299217232ea4f9687eca61402bb4135e4f1e251990c48fd084034aaf02f82

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 15acc4e16fdcabc6f27dc796f5aa7817234ac9f704a652d66d84c861d96eb5d0
MD5 9115972d095357cac79ddd2150ce9d66
BLAKE2b-256 22bdb69700a4a5b6cd0e644af40dcd30af2d947d4c780c4b3ee7d45a00dd31e7

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49bf4447479792db5fb9dee5b2e025ffc8c8536c95c931bdc01e21c3290d0cce
MD5 069dc4ece5d7b2b1c3328878d11a8885
BLAKE2b-256 685c505f3635322f18225a14328efdf3821d0cb449bf5b09d44984ba880970ee

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5b54922ae32624a068b4cfe9cc631504d39569b06467719bba5348c82e2eafd1
MD5 03effe9bd89c78ffb08311ec267411b1
BLAKE2b-256 d075005dfa37257d323fb899d949b203d5b0082b930e289eef1acb1978533ff1

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 31ad59d4b969deec132f26d0bed6d53b97d2956668c7f4bb58548c5b7ddff5d9
MD5 1aacc9692a7329b32c82791006d025f8
BLAKE2b-256 eafe45a0120b508409b4cd3b1e20136e096b21a9630c3ebc1a5f16ca63ec841e

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6e130dd1dad01ec6f79ef4cb34e9b11b19308ac9da090896fb7951953acf5165
MD5 ecf97745c605a27df889e8e02241a579
BLAKE2b-256 e86356bfce095d89aa943f5b459d06c9e9c0ce85499d758b6c1c3881c84ebe64

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 80ffe72dd1c7828a4eceb23ed9670f162bfbaeb80d241f80f83dd7297d8a31e1
MD5 78a55810d509219e4ccb6ba7d2937e04
BLAKE2b-256 ff557346fa93f562ecd2a0ba62ef9dc99b3edc41ad85bc39498236c3070c1489

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4b9d1d6500b09ab54edf48ed2ad2bdf8e77dfa9561f96ed9d9454db7cfcb9f22
MD5 2c814263374e9058fbff9fbfc3faa5b3
BLAKE2b-256 9af0ebe721ca0f986ea331972a5b19a400ba9e87c0dee2abfb5adbe93259dd86

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1133bea6f360f2cf8fbe8f9de7f06e9916b56b308902ed55dc80fc340b176f22
MD5 966049fcffbc763bb344ca6720db0138
BLAKE2b-256 a289070a3addadd5b7157bbc33d7771ffb4cf7046f37aca83177a568be41026a

See more details on using hashes here.

File details

Details for the file pymc_bart_rs-0.1.1-cp38-cp38-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymc_bart_rs-0.1.1-cp38-cp38-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9c6f27392dead4be20dac237c699bb11e5a381b0a07387a949a36821de1476bd
MD5 2d7e7274ac3c3355bd18ee17e911b6f8
BLAKE2b-256 08748e19c63f7d10ee5e110c4e95426026dc3a6ce31dae8f8bc0f3ed7ee5c9e8

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