Skip to main content

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

Metadata

Release files for bayesian-models 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bayesian-models 0.1.3
File Size Uploaded
bayesian-models-0.1.3.tar.gz 65.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bayesian-models 0.1.3
File Interpreter ABI Platform
bayesian_models-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 133.9 kB

Release files / bayesian-models-0.1.3.tar.gz

Download URL bayesian-models-0.1.3.tar.gz
Size 65.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7eff184828fa5b52ce7ff87284b12b0a4336b9bc916dcb3c7a4cbbc938473035
BLAKE2b-256 checksum
How to use checksums
5d928a63e43e1ad13f77f7e92dc5488efb1475a18013c3bec605c76e9ce0d0f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / bayesian_models-0.1.3-py3-none-any.whl

Download URL bayesian_models-0.1.3-py3-none-any.whl
Size 68.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f8ff26498fc61ad9ce1b0d58b9c1a963dcf30351812ca664125442769bfa081
BLAKE2b-256 checksum
How to use checksums
43ddb4848019547bde64622b29dbf3fe9ee1fafb20d9d1cb09468927dfc125f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page