Taweret
Taweret: a Python package for Bayesian model mixing - Published in JOSS (2024)
Science Score: 59.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 4 DOI reference(s) in README -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
4 of 14 committers (28.6%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.7%) to scientific vocabulary
Keywords
Scientific Fields
Repository
Python package for Bayesian Model Mixing
Basic Info
- Host: GitHub
- Owner: bandframework
- License: mit
- Language: Jupyter Notebook
- Default Branch: main
- Homepage: https://bandframework.github.io/Taweret/
- Size: 120 MB
Statistics
- Stars: 8
- Watchers: 4
- Forks: 8
- Open Issues: 10
- Releases: 4
Topics
Metadata Files
README.md
Taweret
Welcome to the GitHub repo for Taweret, the state of the art Python package for applying Bayesian Model Mixing!
About
Taweret is a new generalized package to help with applying Bayesian model mixing methods, developed by members of the BAND collaboration, to a wide variety of problems in physics.
Features
At present, this package possesses the following BMM methods: - Linear model mixing ( With simultaneous model mixing and calibration) - Multivariate BMM - Bayesian Trees
Documentation
See Taweret's docs webpage here.
Cloning
This repository uses submodules.
To clone this repository and automatically checkout all the submodules, use
terminal
git clone --recursive https://github.com/bandframework/Taweret.git
If you want to limit the size of the repository (this or the submodules), you can use the depth flag
terminal
git clone --depth=1 https://github.com/bandframework/Taweret.git
Inside the directory containing the cloned repository, you then run
terminal
git submodule update --init --depth=1
Prerequisites
The Trees module depends on OpenMPI. Please ensure OpenMPI is installed with shared/built libraries prior to using the Trees module.
Testing
The test suite requires the pytest package to be installed and can be run from the test/ directory. To test the current BMM methods, first install the required packages and then run the following three lines of code:
To installing requirements, first navigate to the Taweret directory. The requirements.txt file is located in the root of this directory. Once in the Taweret directory, then execute the following line of code from the terminal.
pip install -e .
Once all installation is complete, proceed with testing by naviagating to the test/ directory and executing the following three lines of code.
pytest test_bivariate_linear.py
pytest test_gaussian.py
pytest test_trees.py
Windows Users:
Taweret also depends on the OpenBT Mixing package in order to execute the trees modulde. This package is built with OpenMPI thus Windows users can work with the trees module using Windows Subsystem for Linux. Installation instructions are shown below.
OpenBT will run within the Windows 10 Windows Subsystem for Linux (WSL) environment. For instructions on installing WSL, please see (https://ubuntu.com/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 you can begin working with Taweret.
MacOS Users:
At the moment, we do not have a working arm64 wheel for OpenBT. However, if you would like to use the Trees class in Taweret, you can follow the instructions found here to build OpenBT locally.
Running on Codespaces
GitHub's Codespaces is a great place to test using Taweret. Right now, you can try out Taweret's Bivariate Linear BMM and Multivariate BMM methods there, by following the instructions below.
- Click the dropdown arrow on the green 'code' button found at the top of this page.
- Click on the tab there that says 'codespaces'.
- Click the button for 'create Codespace on main'.
- Wait for the terminal to be finish spinning up a virtual environment and loading all needed variables (this can take a few minutes).
- Once that is done, navigate on the file tree to a notebook you wish to run. To run a file, you need to set a kernel for the Jupyter notebook, so click on 'choose a kernel' in the upper right hand corner of the notebook. If you haven't gotten this message already, a message will pop up that says 'install preferred Python extension?', and you should click 'yes'.
- When you click 'choose a kernel' it will offer a preferred Python version or a base version (usually a newer Python version). Choose whichever you prefer, and then you can run the notebook!
Citing Taweret
If you have benefited from Taweret, please cite our software using the following format:
@inproceedings{Taweret,
author = "Liyanage, Dan and Semposki, Alexandra and Yannotty, John and Ingles, Kevin",
title = "{{Taweret: A Python Package for Bayesian Model Mixing}}",
year = "2023",
url = {https://github.com/bandframework/Taweret}
}
and our explanatory paper:
@article{Ingles:2023nha,
author = "Ingles, Kevin and Liyanage, Dananjaya and Semposki, Alexandra C. and Yannotty, John C.",
title = "{Taweret: a Python package for Bayesian model mixing}",
eprint = "2310.20549",
archivePrefix = "arXiv",
primaryClass = "nucl-th",
doi = "10.21105/joss.06175",
journal = "J. Open Source Softw.",
volume = "9",
number = "97",
pages = "6175",
year = "2024"
}
Please also cite the BAND collaboration software suite using the format here.
BAND SDK compliance
Check out our SDK form here.
Contact
To contact the Taweret team, please submit an issue through the Issues page.
Authors: Kevin Ingles, Dan Liyanage, Alexandra Semposki, and John Yannotty.
Owner
- Name: BAND
- Login: bandframework
- Kind: organization
- Website: bandframework.github.io/
- Repositories: 4
- Profile: https://github.com/bandframework
GitHub Events
Total
- Issues event: 6
- Issue comment event: 26
- Push event: 73
- Pull request event: 1
- Fork event: 1
- Create event: 1
Last Year
- Issues event: 6
- Issue comment event: 26
- Push event: 73
- Pull request event: 1
- Fork event: 1
- Create event: 1
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Alexandra Semposki | a****4@o****u | 210 |
| Jared O'Neal | j****l@a****v | 155 |
| John Yannotty | j****y@g****m | 111 |
| ominusliticus | e****1@g****m | 78 |
| Dananjaya Liyanage | 3****U | 56 |
| GitHub Action | a****n@g****m | 54 |
| DanOSU | l****5@o****u | 24 |
| Dananjaya Liyanage | d****e@D****n | 13 |
| Stefan M Wild | w****d@l****v | 1 |
| runner | r****r@M****l | 1 |
| runner | r****r@M****l | 1 |
| runner | r****r@M****l | 1 |
| runner | r****r@M****l | 1 |
| runner | r****r@M****l | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 32
- Total pull requests: 71
- Average time to close issues: 3 months
- Average time to close pull requests: 6 days
- Total issue authors: 7
- Total pull request authors: 6
- Average comments per issue: 3.69
- Average comments per pull request: 1.11
- Merged pull requests: 63
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 9
- Pull requests: 5
- Average time to close issues: 2 days
- Average time to close pull requests: about 23 hours
- Issue authors: 2
- Pull request authors: 2
- Average comments per issue: 0.44
- Average comments per pull request: 5.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- jared321 (13)
- asemposki (8)
- gchure (5)
- julienmalard (3)
- jcyannotty (2)
- ominusliticus (1)
- danOSU (1)
Pull Request Authors
- jcyannotty (42)
- asemposki (26)
- jared321 (25)
- ominusliticus (11)
- wildsm (1)
- danOSU (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
- uibcdf/action-sphinx-docs-to-gh-pages v1.0.0 composite
- bilby *
- corner *
- cycler *
- emcee *
- matplotlib *
- numpy >=1.20.3
- pathlib *
- pytest *
- scikit-learn *
- scipy >=1.7.0
- seaborn *
- statistics *
- typing *
- bilby *
- corner *
- cycler *
- emcee *
- matplotlib *
- numpy >=1.20.3
- pathlib *
- scikit-learn *
- scipy >=1.7.0
- seaborn *
- statistics *
- typing *