Skip to main content

A python packge for model mixing using Bayesian Additive Regression Trees

Project description

Open Bayesian Trees Project

This repository includes new developments with Bayesian Additive Regression Trees and extends the original OpenBT repository created by Matt Pratola (https://bitbucket.org/mpratola/openbt/src/master/). Such extensions include Bayesian Model Mixing and Bayesian Calibration. All of the Bayesian Tree code is written in C++. User interfaces constructed in R and Python allow one to easily run the software. The OpenBT project is also included in the Bayesian Model Mixing python package, Taweret, which is included in the Bayesian Analysis of Nuclear Dynamics sotware (see https://bandframework.github.io/).

Installation for Python Users

You can work with the BART-based model mixing method via the Taweret python package. Simply install Taweret and you can begin working.

Windows Users:

OpenBT relies on OpenMPI, which is not compatible with Windows. Thus you can work with Taweret by using Windows Subsystem for Linux (WSL). See instructions below for installing WSL.

Installation for R Users:

The Trees module is a Python interface which calls and executes a Ubuntu package in order to fit the mixing model and obtain the resulting predictions. This package is developed as a part of the Open Bayesian Trees Project (OpenBT). To install the Ubuntu package, please follow the steps below based on the operating system of choice.

Linux:

  1. Download the OpenBT Ubuntu Linux 20.04 package:
    $ wget -q https://github.com/jcyannotty/OpenBT/raw/main/openbt_mixing0.current_amd64-MPI_Ubuntu_20.04.deb 
  1. Install the package and reset the library cache:
    $ cd /location/of/downloaded/.deb
    $ dpkg -i openbt_mixing0.current_amd64-MPI_Ubuntu_20.04.deb
    $ ldconfig

Mac OS/:X

  1. Install the OS/X OpenMPI package by running the following brew commands in a terminal window:
    $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    $ brew install open-mpi
  1. Download the OpenBT OSX binary package: "OpenBT-Mixing-0.current.pkg".

  2. Install the OpenBT OSX package by double-clicking on the downloaded .pkg file and follow the on-screen instructions.

Windows:

OpenBT will run within the Windows 10 Windows Subsystem for Linux (WSL) environment. For instructions on installing WSL, please see Ubuntu WSL. We recommend installing the Ubuntu 20.04 WSL build. There are also instructions here on keeping your Ubuntu WSL up to date, or installing additional features like X support. Once you have installed the WSL Ubuntu layer, start the WSL Ubuntu shell from the start menu and then install the package:

    $ cd /mnt/c/location/of/downloaded/.deb
    $ dpkg -i openbt_mixing0.current_amd64-MPI_Ubuntu_20.04.deb

Local Compilation

Alternatively, one could also download the source files and compile the project locally. If compiling locally, please ensure you have installed the approriate dependencies for MPI (see Mac OS/X above) and the Eigen Library.

Examples

The examples from the article "Model Mixing Using Bayesian Additive Regression Tress" are reproduced in the jupyter noteboook BART_BMM_Technometrics.ipynb. This notebook can be run locally or in a virtual environment such as google colab.

Related Software

The BART Model Mixing software has been implemented in the Taweret Python package in conjunction with the BAND collaboration.

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

openbtmixing-1.0.1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

openbtmixing-1.0.1-py3-none-macosx_12_0_arm64.whl (16.7 MB view details)

Uploaded Python 3 macOS 12.0+ ARM64

openbtmixing-1.0.1-py3-none-macosx_10_9_x86_64.whl (16.1 MB view details)

Uploaded Python 3 macOS 10.9+ x86-64

openbtmixing-1.0.1-py3-none-macosx_10_9_arm64.whl (17.0 MB view details)

Uploaded Python 3 macOS 10.9+ ARM64

File details

Details for the file openbtmixing-1.0.1.tar.gz.

File metadata

  • Download URL: openbtmixing-1.0.1.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for openbtmixing-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a978907326db40a457d21a585124a6cfdd24e971d548bbd2d888972c93b3c79b
MD5 07f4199173726db21c6c45f2ae2dd9a9
BLAKE2b-256 a5bf53a3259005ad06532c4cf57e0124facf0ef8669d6fe25fdbc61de424bd4d

See more details on using hashes here.

File details

Details for the file openbtmixing-1.0.1-py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openbtmixing-1.0.1-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e3f37c51ec8899fa56e9fe5e103c5d23e4a04d65264c0479b3dfb8eabee1412
MD5 effb73667db552fd1675bd782c6dc83c
BLAKE2b-256 ef29d0a03e126ee5664f2350f25104f0839efc00f204ac20ae9b4f351df7033e

See more details on using hashes here.

File details

Details for the file openbtmixing-1.0.1-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for openbtmixing-1.0.1-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 6d8e5264925a53fa6d8eb1ecda9c3eddba9732d5e430363d9e44187cecd25fe3
MD5 ef6e4f974cc7e0f58626c955bb3e69f9
BLAKE2b-256 3a2bc1b33ed0704ac217d6587ba3133d64229fd2c4a507b2056d58028a4f8ab5

See more details on using hashes here.

File details

Details for the file openbtmixing-1.0.1-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for openbtmixing-1.0.1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e1b15b2fe1a68deaf06ce400b38172af8cfa6d2c97543f69aac124c068b244e2
MD5 065f48812511abaf4f4c7d0a783668b0
BLAKE2b-256 7d8d92e6dc51f7443b2039db215345eb4d63ef25b8f8861748d9171976086322

See more details on using hashes here.

File details

Details for the file openbtmixing-1.0.1-py3-none-macosx_10_9_arm64.whl.

File metadata

File hashes

Hashes for openbtmixing-1.0.1-py3-none-macosx_10_9_arm64.whl
Algorithm Hash digest
SHA256 9d04ac0a4e844914474c48b06dd2d0fcbeb95bb856d7bff61ce5a06015f658ce
MD5 4041492088f2e3c88c3fc233dca2254b
BLAKE2b-256 8f81137b7f8f18e08c057cd65e1a3c2ea072fe8b8b9e1ec85c8d5f6f1d1adafb

See more details on using hashes here.

Supported by

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