A package for building common bayesian models in pymc
Project description
bayesian-models
bayeian-models
is a small library build on top of pymc
that
implements common statistical models
bayesian_models
aims to implement sklearn
style classes,
representing general types of models a user may wish to specify. Since
there is a very large variety of statistical models available, only some
are included in this library in a somewhat ad-hoc manner. The following
models are planned for implementation:
- BEST (Bayesian Estimation Superceeds the t Test) := Statistical comparisons' between groups, analoguous to hypothesis testing (COMPLETED)
Installation
bayesian-models
can be installed with pip
pip install bayesian-models
Newer releases are first published to TestPyPI. They are installable as follows
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple bayesian-models
To install from git:
pip install git+ssh://git@github.com/AlexRodis/bayesian-models.git
To install the developement version run:
pip install 'bayesian_models[dev]@ git+ssh://git@github.com/AlexRodis/bayesian_models.git@dev-main'
It is often desirable to run models with a GPU if available. At present,
there are known issues with the numpyro
dependency. Only these
versions are supported:
jax==0.4.1
jaxlib==0.4.1
To attempt to install with GPU support run:
pip install 'bayesian_models[GPU]@git+ssh://git@github.com/AlexRodis/bayesian-models.git'
Note: the GPU version is unstable
You must also set the following environment variable prior to all other commands, including imports
XLA_PYTHON_CLIENT_PREALLOCATE=false
These dependencies are only required with
pymc.sampling.jax.sample_numpyro_nuts
and if using the default options
can be ignored
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
Built Distribution
File details
Details for the file bayesian-models-0.1.3.tar.gz
.
File metadata
- Download URL: bayesian-models-0.1.3.tar.gz
- Upload date:
- Size: 65.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eff184828fa5b52ce7ff87284b12b0a4336b9bc916dcb3c7a4cbbc938473035 |
|
MD5 | 3d3548f7666cad48ece6227ee347c6d5 |
|
BLAKE2b-256 | 5d928a63e43e1ad13f77f7e92dc5488efb1475a18013c3bec605c76e9ce0d0f9 |
File details
Details for the file bayesian_models-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: bayesian_models-0.1.3-py3-none-any.whl
- Upload date:
- Size: 68.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f8ff26498fc61ad9ce1b0d58b9c1a963dcf30351812ca664125442769bfa081 |
|
MD5 | 950e3e93a665a7e79e754ddaa99efe2c |
|
BLAKE2b-256 | 43ddb4848019547bde64622b29dbf3fe9ee1fafb20d9d1cb09468927dfc125f2 |